Closed Bug 1496793 Opened 7 years ago Closed 7 years ago

Event telemetry should trim values if length > 80 chars

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(firefox64 fixed)

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: jdescottes, Assigned: miker)

Details

Attachments

(1 file)

In some scenarios, it seems we are nearing the length limit for some telemetry APIs. STRs: - open about:debugging#addons - load a temporary web extension that has a devtools panel (I used a local build of https://github.com/captainbrosset/devtools-highlighter) - open devtools - select the panel coming from the extension In the logs I had JavaScript error: resource://devtools/shared/base-loader.js -> resource://devtools/client/shared/telemetry.js, line 554: Error: The property "first_panel" was added to a telemetry event with the signature open,tools,null but it's value "webext-devtools-panel-dd850311925d52323a7ff2cf42edb9e13a4e5662_temporary-addon-18-0" is longer than the maximum allowed length of 80 characters This error is generated from our telemtry wrapper. In that case, the tool name was made longer by the fact that it was loaded as a temporary addon, and reached 83 chars. webext-devtools-panel-dd850311925d52323a7ff2cf42edb9e13a4e5662_temporary-addon-18-0 Maybe instead of throwing (and not sending the event) we should trim and log an error/warning?
Mike, as discussed here is the bug for modifying our logic around the 80characters limit in event telemetry.
Flags: needinfo?(mratcliffe)
We should trim all event property values.
Flags: needinfo?(mratcliffe)
Pushed by mratcliffe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/55515c0020e1 Event telemetry should trim values if length > 80 chars r=jdescottes
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: