Event docs suggest extra values are limited to 50B... or 100B, depending on where you look
Categories
(Data Platform and Tools :: Glean: SDK, defect, P2)
Tracking
(Not tracked)
People
(Reporter: chutten, Assigned: chutten)
Details
(Whiteboard: [docdays])
Attachments
(1 file)
Under record(map)
's recorded errors:
invalid_overflow: if any of the values in the extras object are greater than 50 bytes in length. (Prior to Glean 31.5.0, this recorded an invalid_value).
Under Limits
The values in the extras object have a maximum length of 100 bytes, when serialized and encoded as UTF-8.
Also: Do we truncate? Other string types confirm we truncate and record an error, but event
is silent on that front.
Also also: Are the recorded errors just for record(map)
or for both old and new record
APIs?
Comment 1•2 years ago
|
||
100 is correct as per the code: https://github.com/mozilla/glean/blob/2cc2c2747673e753c8bf23b04560a992a1f16ef0/glean-core/src/metrics/event.rs#L14
We truncate and record an error: https://github.com/mozilla/glean/blob/2cc2c2747673e753c8bf23b04560a992a1f16ef0/glean-core/src/metrics/event.rs#L93-L99
This holds for both APIs.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
chutten merged PR #2127: "bug 1779003 - Consistently note event extra value length limit of 100B [doc only]" in 9630931.
Description
•