Open Bug 1600008 Opened 5 years ago Updated 1 years ago

Consider adding a test API for checking if *any* label was recorded

Categories

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

enhancement

Tracking

(Not tracked)

People

(Reporter: Dexter, Unassigned)

References

(Blocks 2 open bugs)

Details

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

From this GH issue:

It may or may not make sense based on your mental model of things, but I found myself wanting a LabeledMetric::testHasValue() helper function that will test whether a value has been recorded for any label.

Priority: -- → P3
Whiteboard: [telemetry:glean-rs:m?]
Whiteboard: [telemetry:glean-rs:m?] → [telemetry:glean-rs:backlog]

I'm not so sure about that API.
If you don't know which label might have data, then what information does one gain from knowing that something was recorded?

In my case, I was interested in asserting that nothing was recorded under any label.

Whiteboard: [telemetry:glean-rs:backlog] → [telemetry:glean-rs:backlog][telemetry:glean:testing]
Whiteboard: [telemetry:glean-rs:backlog][telemetry:glean:testing] → [telemetry:glean-rs:testing]
Blocks: 1834621
You need to log in before you can comment on or make changes to this bug.