Document that new metrics need a non-gecko-feature entry in metrics.rs
Categories
(Toolkit :: Telemetry, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox90 | --- | fixed |
People
(Reporter: janerik, Assigned: chutten)
Details
(Whiteboard: [telemetry:fog:m?])
Attachments
(2 files)
To satisfy the linter we need to expose the same symbols in a non-gecko build, we do that in toolkit/components/glean/api/src/metrics.rs, but that was missed for labeled counters.
We should document this as part of the "Adding a New Metric Type" documentation
| Assignee | ||
Comment 1•5 years ago
|
||
We should also document our expectations around running clippy, if we're going to expect folks to keep metrics.rs up-to-date fo rit.
| Assignee | ||
Comment 2•5 years ago
|
||
Weird. ./mach lint --linter clippy toolkit/components/glean/ comes up with 0 errors despite there being no Quantity.
Jan-Erik, is it possible we no longer have to worry about this?
| Reporter | ||
Comment 3•5 years ago
|
||
(In reply to Chris H-C :chutten from comment #2)
Weird.
./mach lint --linter clippy toolkit/components/glean/comes up with 0 errors despite there being noQuantity.Jan-Erik, is it possible we no longer have to worry about this?
It requires the full path to the entry of a library, e.g. ./mach lint --linter clippy toolkit/components/glean/api/src/lib.rs
| Assignee | ||
Comment 4•5 years ago
|
||
Weird. After updating that too gives me a clean bill of health.
Ah-ha, this is due to bug 1709496 meaning we should run it against the crate not the entry, e.g. ./mach lint --linter clippy toolkit/components/glean/api/
Huh, apparently I missed TIMING_DISTRIBUTION_MAP, too. Plenty to fix, and then to document.
| Assignee | ||
Comment 5•5 years ago
|
||
| Assignee | ||
Comment 6•5 years ago
|
||
Depends on D114621
Comment 8•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d49c17230428
https://hg.mozilla.org/mozilla-central/rev/8e2ea84e4378
Description
•