Closed
Bug 1167689
Opened 9 years ago
Closed 9 years ago
Omit the "addonHistograms" key entirely if there is no histogram data
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: mreid, Assigned: azhang)
References
Details
Attachments
(1 file, 1 obsolete file)
1.18 KB,
patch
|
vladan
:
review+
|
Details | Diff | Splinter Review |
Telemetry currently reports "addonHistogram":{} when there is nothing to report. We should just skip that key if there's no data.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → azhang
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8610245 -
Flags: review?(vdjeric)
Comment 2•9 years ago
|
||
Comment on attachment 8610245 [details] [diff] [review] optional-addon-histograms.patch Review of attachment 8610245 [details] [diff] [review]: ----------------------------------------------------------------- Do an "hg export" before you upload patches so that your author information, commit comments, etc is in the patch. Then the patch file can be landed directly from the bug by setting the checkin-needed tag on the bug's Whiteboard field ::: toolkit/components/telemetry/TelemetrySession.jsm @@ +1379,5 @@ > payloadObj.lateWrites = Telemetry.lateWrites; > + > + // Add the addon histograms if they are present > + let addonHistograms = this.getAddonHistograms(); > + for (let name in addonHistograms) { this is a bit hacky.. how about: if (Object.keys(addonHistograms).length) { payloadObj.addonHistograms = addonHistograms; }
Attachment #8610245 -
Flags: review?(vdjeric)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8610245 -
Attachment is obsolete: true
Attachment #8610663 -
Flags: review?(vdjeric)
Updated•9 years ago
|
Attachment #8610663 -
Flags: review?(vdjeric) → review+
Updated•9 years ago
|
Keywords: checkin-needed
Comment 4•9 years ago
|
||
Oh and usually you'll need to add r=<reviewer's irc nick> to the end of your commit message
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/63f60689f769
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•