Closed Bug 1557358 Opened 5 years ago Closed 4 years ago

Consider dropping labeled booleans metric types in favor of a "label set" metric type

Categories

(Data Platform and Tools :: Glean: SDK, task, P3)

task

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1557353

People

(Reporter: gfritzsche, Unassigned)

References

Details

(Whiteboard: [telemetry:glean-rs:backlog])

Labeled booleans allow recording multiple bools under different values, e.g. to record whether a specific subfeature of a feature set was used.

"For example you may want to find which URI schemes are used in your application, like "http", "https", "about""

Maybe we could instead use a more straight-forward data type here, like a "label set". It would behave as a set of unique string values (vs. a string list with non-uniques). E.g.:

val x: StringSetMetric
x.add("http")
x.add("http")
x.add("about")
// x now contains: {"http", "about"}

Note that i'll remove these from the docs for now in this PR:
https://github.com/mozilla-mobile/android-components/pull/3273

Priority: -- → P3
Whiteboard: [telemetry:glean-rs:m?]
See Also: → 1557353
Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:backlog]
Depends on: 1570386
Depends on: 1608137
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.