Closed Bug 1645465 Opened 4 years ago Closed 4 years ago

Log error messages when recording a telemetry event

Categories

(Toolkit :: Telemetry, enhancement, P1)

enhancement
Points:
1

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: emmamalysz, Assigned: chutten)

Details

Attachments

(1 file, 1 obsolete file)

We currently return RecordEventResult::Ok even if we don't record the event, which is misleading. See https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/core/TelemetryEvent.cpp#457-460.

We should either log a message here or add a unique value to the RecordEventResult enum. This will help telemetry debugging.

We shouldn't log here as it would log every event recording in release builds if the event collection is prerelease-only. But a different return value is doable.

Assignee: nobody → chutten
Severity: -- → S4
Status: NEW → ASSIGNED
Points: --- → 1
Priority: -- → P1

We do not log in this case because this can happen normally if e.g. the event
is collected in prerelease channels only.

Pushed by chutten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2af48ca6f91a
Return non-Ok status when event cannot be recorded r=janerik
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Attachment #9162302 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: