Closed Bug 1699168 Opened 5 years ago Closed 5 years ago

Document that new metrics need a non-gecko-feature entry in metrics.rs

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
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

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: nobody → chutten
Status: NEW → ASSIGNED
Priority: P3 → P1

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?

Flags: needinfo?(jrediger)

(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 no Quantity.

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

Flags: needinfo?(jrediger)

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.

Depends on D114621

Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d49c17230428 Fix some clippy nits r=janerik DONTBUILD https://hg.mozilla.org/integration/autoland/rev/8e2ea84e4378 Document FOG linting, testing r=janerik DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: