Closed
Bug 1339195
Opened 7 years ago
Closed 7 years ago
Add explicit documentation on "extra" field format type for event telemetry
Categories
(Toolkit :: Telemetry, defect, P1)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: bugzilla, Assigned: gfritzsche)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.79 KB,
patch
|
Dexter
:
review+
|
Details | Diff | Splinter Review |
I noticed we do an undocumented check in the telemetry client to ensure that the "extra" object is a simple json object of string keys + string values (https://hg.mozilla.org/integration/mozilla-inbound/rev/190f6fc837b5#l4.495). My life would be so much easier on the ETL side if I can assume this is true and throw out any values that don't conform. Can we document this officially so I can throw out values that aren't Strings as non-conforming to spec?
Assignee | ||
Comment 1•7 years ago
|
||
(In reply to Sunah Suh [:sunahsuh] from comment #0) > Can we document this officially so I can throw out values that aren't > Strings as non-conforming to spec? Sure - this was part of the draft, i'll call this out explicitly in the docs.
Flags: needinfo?(gfritzsche)
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8865773 -
Flags: review?(alessio.placitelli)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → gfritzsche
Status: NEW → ASSIGNED
Assignee | ||
Updated•7 years ago
|
Priority: P2 → P1
Comment 3•7 years ago
|
||
Comment on attachment 8865773 [details] [diff] [review] Clearly document event extra fields requiring string keys and values Review of attachment 8865773 [details] [diff] [review]: ----------------------------------------------------------------- We should also enforce that in the schema if it's not like that, already.
Attachment #8865773 -
Flags: review?(alessio.placitelli) → review+
Assignee | ||
Comment 4•7 years ago
|
||
Not yet: https://github.com/mozilla-services/mozilla-pipeline-schemas/blob/master/schemas/telemetry/main/main.4.schema.json#L861 We should restrict this using some variant of: > "additionalProperties": { "type": "string" }
Comment 5•7 years ago
|
||
Maybe we can piggyback this change on https://github.com/mozilla-services/mozilla-pipeline-schemas/pull/34 ? Please comment there if you think it would be useful (so that we can test it only once, as testing schemas server side is still very painful :D ).
Assignee | ||
Comment 6•7 years ago
|
||
I've opened a PR: https://github.com/mozilla-services/mozilla-pipeline-schemas/pull/45
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/e69c90207160 Clearly document event extra fields requiring string keys and values. r=Dexter
Keywords: checkin-needed
Assignee | ||
Updated•7 years ago
|
Points: --- → 1
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e69c90207160
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•