Add profile markers for dual_labeled_counter submetric operations
Categories
(Toolkit :: Telemetry, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: chutten|PTO, Assigned: chutten|PTO)
References
Details
Attachments
(3 files)
dual_labeled_counter submetrics should add profiler markers on their add operations similar to how LabeledCounterMetric does.
This will be complicated by how CounterMetric already has a MetricMetadataGetterImpl impl thanks to LabeledCounterMetric so none of the existing macros will work. Probably best to split the submetric-specific parts of define_metric_metadata_getter! into its own macro for DualLabeledCounterSubMetric to use.
A fix for this bug should also augment the add new metric type to FOG docs with instructions about how to ensure new metric types' operations properly add profiler markers (and test them).
| Assignee | ||
Updated•6 months ago
|
Updated•6 months ago
|
| Assignee | ||
Comment 1•5 months ago
|
||
For the record, the way this manifests today is that dual_labeled_counter add operations do indeed get Countre::add markers like labeled_counter metrics' add operations do, but instead of having the metric name they have an error like: Error looking up SubId(SubMetricId(33554471)): FOGSubmetricLookupFailed.
| Assignee | ||
Comment 2•4 months ago
|
||
This
- Keeps the macros from being available to modules outside of api/src/private
- Keeps the macros from being available to crates outside of firefox-on-glean
- Allows api/src/private to use the macros without
crate::scoping
| Assignee | ||
Comment 3•4 months ago
|
||
| Assignee | ||
Comment 4•4 months ago
|
||
In the parent process the submetric operations are all in CounterMetric's macros.
Comment 6•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9e13fe4760c0
https://hg.mozilla.org/mozilla-central/rev/9249747a4e3e
https://hg.mozilla.org/mozilla-central/rev/644097292154
Updated•4 months ago
|
Description
•