Closed Bug 1225336 Opened 9 years ago Closed 9 years ago

Add telemetry about notification display/messages

Categories

(Toolkit Graveyard :: Notifications and Alerts, enhancement)

enhancement
Not set
normal

Tracking

(firefox44 fixed, firefox45 fixed, b2g-v2.5 fixed)

RESOLVED FIXED
mozilla45
Tracking Status
firefox44 --- fixed
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Implemented the "Messages" section of https://public.etherpad-mozilla.org/p/notification-telemetry which gathers telemetry about the Notifications that appear on screen.
NI: Jeff - please provide direction on what telemetry is opt-in/out. thx
Flags: needinfo?(jgriffiths)
Flags: needinfo?(jgriffiths)
Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge
Attachment #8693851 - Flags: review?(wchen)
Attachment #8693851 - Flags: review?(kcambridge)
Attachment #8693851 - Flags: review?(vladan.bugzilla)
Comment on attachment 8693851 [details]
MozReview Request: Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge

https://reviewboard.mozilla.org/r/26583/#review24089

Looks good!

::: toolkit/components/telemetry/Histograms.json:10095
(Diff revision 1)
> +    "description": "Count of times a Notification was rendered (accouting for XUL DND). A system backend may put the notification directly into the tray if it's own DND is on."

Nit: "accounting," s/it's/its.
Attachment #8693851 - Flags: review?(kcambridge) → review+
Comment on attachment 8693851 [details]
MozReview Request: Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge

https://reviewboard.mozilla.org/r/26583/#review24157

::: dom/notification/Notification.cpp:1191
(Diff revision 1)
> +  if (!strcmp("alertshow", aTopic) ||

I think it's better to keep the else if statement as before and put the check for "alertshow" in the body so we only do an additional string comparison for the "alertshow" and "alertfinsihed" case instead of every case.
Attachment #8693851 - Flags: review?(wchen) → review+
Comment on attachment 8693851 [details]
MozReview Request: Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge

https://reviewboard.mozilla.org/r/26583/#review24197

Looks good to me.
You could put all these histograms into a single enum if you plan to compare them against each other in the dash
Attachment #8693851 - Flags: review?(vladan.bugzilla) → review+
https://hg.mozilla.org/mozilla-central/rev/06ff4eab29c6
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment on attachment 8693851 [details]
MozReview Request: Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge

Approval Request Comment
[Feature/regressing bug #]: Push notifications
[User impact if declined]: No understanding their users
[Describe test coverage new/current, TreeHerder]: None, we will watch dashboards
[Risks and why]: Low risk telemetry addition.
[String/UUID change made/needed]: None
Attachment #8693851 - Flags: approval-mozilla-aurora?
Comment on attachment 8693851 [details]
MozReview Request: Bug 1225336 - Add telemetry about notification display/messages. r=wchen,kitcambridge

Seems like a good idea, Aurora44+
Attachment #8693851 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
has problems to apply to aurora:

Tomcats-MacBook-Pro-2:mozilla-central Tomcat$ hg graft --edit -r 06ff4eab29c6
grafting 317795:06ff4eab29c6 "Bug 1225336 - Add telemetry about web notification display/messages. r=wchen,kitcambridge p=vladan"
merging dom/notification/Notification.cpp
merging toolkit/components/alerts/resources/content/alert.js
merging toolkit/components/telemetry/Histograms.json
warning: conflicts while merging dom/notification/Notification.cpp! (edit, then use 'hg resolve --mark')
warning: conflicts while merging toolkit/components/telemetry/Histograms.json! (edit, then use 'hg resolve --mark')
abort: unresolved conflicts, can't continue
Flags: needinfo?(MattN+bmo)
Attached patch 1.patchSplinter Review
Looks like this missed Aurora 44. Re-requesting uplift for Beta. Same rationale as comment 8.
Attachment #8693851 - Attachment is obsolete: true
Flags: needinfo?(MattN+bmo)
Attachment #8702775 - Flags: approval-mozilla-beta?
Comment on attachment 8702775 [details] [diff] [review]
1.patch

Makes sense, Bata44+
Attachment #8702775 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Blocks: 1281191
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: