Closed Bug 1696388 Opened 3 years ago Closed 2 years ago

Add a test for custom accessors for FOG labeled metrics in JS

Categories

(Toolkit :: Telemetry, task, P3)

task
Points:
1

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: Dexter, Assigned: perry.mcmanis, Mentored)

Details

(Whiteboard: [telemetry:fog:m?][good next bug][lang=js])

Attachments

(1 file, 1 obsolete file)

Our tests only test the glean.metric.this_is_a_label.set() syntax, but do not mention nor test glean.metric["this_is_a_label"].set().

While the former syntax is handy (and makes compiler happy) if the label only has underscores in it, Glean labels also allow using . and -, forcing users to use the latter syntax.

The linter auto-corrects Glean.category.metric["this_is_a_label"].operation(args) to Glean.category.metric.this_is_a_label.operation(args), so we'll have difficulty testing that form for labels that are valid JS identifiers.

But since . is a permitted character for labels, let's use that to avoid the linter and make the test even more complete.

Type: enhancement → task
Points: --- → 1
Priority: -- → P3
Whiteboard: [telemetry:fog:m?][good next bug][lang=js]
Mentor: chutten
Severity: -- → N/A
Assignee: nobody → pmcmanis
Attached file drr_2022_07_14.txt (obsolete) —
Attachment #9285571 - Flags: data-review?(chutten)

Comment on attachment 9285571 [details]
drr_2022_07_14.txt

If no population is being measured, no data is being collected that needs to be passed through Data Collection Review. This test-only metric is free to be collected.

Attachment #9285571 - Attachment is obsolete: true
Attachment #9285571 - Flags: data-review?(chutten)
Pushed by pmcmanis@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9994d22af44f
Add tests for labled metric accessors including custom accessors for JS style accessors r=chutten
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: