Open Bug 1536798 Opened 6 years ago Updated 3 years ago

Consider providing JavaScript constants for metric/probe names

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: gfritzsche, Unassigned)

Details

I see in a few places that Firefox JS code defines constant for the metric/probe names, which are strings, like BrowserUsageTelemetry.
I assume this is for less error prone coding styles?

Should we consider providing a module from Telemetry that provides those constant? (incremental improvement)
Or should we wait longer here and go the Glean route of build-time generated APIs that contain the metric names? (bigger change)

Either way, user research would be required for what's useful for engineers here.

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.