Closed Bug 1649357 Opened 5 years ago Closed 5 years ago

Clarify in telemetry API docs that only events flushed to storage are cleared

Categories

(Toolkit :: Telemetry, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

Details

Attachments

(1 file)

[Event] telemetry from outside the parent process only gets flushed to the parent process on a 2s interval and Services.telemetry.clearEvents() won’t clear this buffer or prevent those buffered values from being added to the ping data. This can cause confusing failures in tests.
A pref was added to workaround this but it still seems like a footgun for events recorded before clearEvents to be added to storage after. For now I think we can make this a bit clearer and point to the pref from the .idl docs.

Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/61865ea6582e Clarify in telemetry API docs that only events flushed to storage are cleared. r=Dexter
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: