Closed
Bug 1127574
Opened 9 years ago
Closed 9 years ago
Rooms should have Telemetry feedback for generate/copy/email data
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(firefox41 fixed, firefox42 fixed)
backlog | backlog+ |
People
(Reporter: standard8, Assigned: mikedeboer)
References
Details
(Whiteboard: [metrics][consider uplift to 39])
User Story
Data to be collected through Telemetry: - "Create room" events - "Delete room" events - "Copy room URL from panel" events - "Copy room URL from conversation window" events - "E-mail room URL from conversation window" events - "E-mail room URL from error panel after a direct call failed" events
Attachments
(2 files, 3 obsolete files)
30.79 KB,
patch
|
vladan
:
review+
kglazko
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
17.81 KB,
patch
|
vladan
:
review+
kglazko
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
When we wrote rooms, we didn't include the telemetry data that Calls had. For calls we had: - LOOP_CLIENT_CALL_URL_REQUESTS_SUCCESS - LOOP_CLIENT_CALL_URL_SHARED (emailed or copied) What do we want for ROOMS? I'm currently thinking - LOOP_ROOMS_CREATED - LOOP_ROOMS_URL_SHARED Created is obviously an increment, not the total per user - though we could potentially add that as well. Thoughts?
Flags: needinfo?(rtestard)
Flags: needinfo?(adam)
Comment 1•9 years ago
|
||
We already have "created rooms" from the server data although I am not sure if we can correlate server data with telemetry data well so perhaps the created rooms data help this correlation? Also is this the kind of data that could be added to FHR for simpler correlation with the other server data? I can think of these other types of events we'll want to track - does this make sense to address this all under a single bug? - Tab sharing initiated/stopped - Window sharing initiated/stopped - Face mute/unmute - Audio mute/unmute - Copy URL from panel - Copy URL from conversation window - Share URL from conversation window - Rename room - Delete room - Change availability status - Import contacts
Flags: needinfo?(rtestard)
Comment 2•9 years ago
|
||
(In reply to Romain Testard [:RT] from comment #1) > We already have "created rooms" from the server data although I am not sure > if we can correlate server data with telemetry data well so perhaps the > created rooms data help this correlation? The issue that I see here is that server information will be complete, while telemetry data will be sampled. In particular, this means that figuring out how many times each link is shared, on average, will be impossible. > Also is this the kind of data that could be added to FHR for simpler > correlation with the other server data? I'm hesitant to use FHR for most of these things, simply for the privacy implications. I think we need to carefully consider what questions we want answered, and whether we can answer them with something less intrusive than an opt-out solution. I suspect we can. > I can think of these other types of events we'll want to track - does this > make sense to address this all under a single bug? > - Tab sharing initiated/stopped > - Window sharing initiated/stopped > - Face mute/unmute > - Audio mute/unmute > - Copy URL from panel > - Copy URL from conversation window > - Share URL from conversation window > - Rename room > - Delete room > - Change availability status > - Import contacts I think these, along with the "create room", are reasonable candidates for telemetry, although I don't think they're the subject of *this* bug as it was envisioned. For this bug, I think we want counts for "create room", "delete room", "copy from panel", "email from panel," "copy from conversation window", "email from conversation window", and "email from error panel after a direct call failed". I would suggest putting the other proposed metrics into a different bug or bugs.
Flags: needinfo?(adam)
Comment 3•9 years ago
|
||
OK fair points. I created bug 1129726 to deal with other room usage data.
User Story: (updated)
Comment 4•9 years ago
|
||
Shell, I am marking this as blocking Fx38 so we can start tracking this work as part of the Hello bugs.
backlog: --- → Fx38+
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Rank: 21
Updated•9 years ago
|
Whiteboard: [metrics]
Updated•9 years ago
|
backlog: Fx38+ → backlog+
Flags: firefox-backlog+
Updated•9 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Comment 5•9 years ago
|
||
Based on prioritized work - this bug will likely not get done in next 2 iterations... dropping rank/priority
Assignee: jaws → nobody
Rank: 21 → 37
Priority: P2 → P3
Updated•9 years ago
|
Rank: 37 → 19
Priority: P3 → P1
Whiteboard: [metrics] → [metrics][consider uplift to 39]
Comment 6•9 years ago
|
||
discussed with Mark and RT about raising these to uplift them with other telemetry. smaller changes and getting us info starting in 39 for user behavior that we'll use to make decisions.
Updated•9 years ago
|
Blocks: loop-metrics
Updated•9 years ago
|
Assignee: nobody → mdeboer
Iteration: --- → 41.2 - Jun 8
Assignee | ||
Updated•9 years ago
|
Points: --- → 3
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8612247 -
Flags: review?(standard8)
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8612247 -
Attachment is obsolete: true
Attachment #8612247 -
Flags: review?(standard8)
Attachment #8612264 -
Flags: review?(standard8)
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8612265 -
Flags: review?(standard8)
Reporter | ||
Comment 10•9 years ago
|
||
Comment on attachment 8612264 [details] [diff] [review] Patch 1.1: add telemetry hooks copy and email of room and direct call URLs Review of attachment 8612264 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, r=Standard8, as I mention at the bottom, this needs opt-out approval/review from one of the telemetry peers. ::: browser/components/loop/modules/MozLoopService.jsm @@ +43,5 @@ > }; > > +/** > + * Values that we segment sharing a room URL action telemetry probes into. > + * nit: Eslint says trailing space ::: browser/components/loop/test/desktop-local/conversationViews_test.js @@ +89,5 @@ > stopAlerting: sinon.stub(), > userProfile: { > email: "bob@invalid.tld" > + }, > + telemetryAddValue: function() {} Adding this implies incorrect stubbing and the function isn't called directly from conversationViews.jsx - the stub of "composeCallUrlEmail" in "should compose an email once the email link is received" needs to be moved up to beforeEach, so that "should close the conversation window once the email link is received" has it stubbed as well. Hence, please move the stub and remove this addition. ::: browser/components/loop/test/desktop-local/roomStore_test.js @@ +93,5 @@ > open: function() {}, > rename: function() {}, > on: sandbox.stub() > + }, > + telemetryAddValue: sandbox.stub() nit: I generally prefer to use sinon.stub() for things like this where we're recreating the object each time, as we don't need the sandbox functionality to restore the stub before/after. ::: toolkit/components/telemetry/Histograms.json @@ +7448,5 @@ > "n_values": 8, > "releaseChannelCollection": "opt-out", > "description": "Number of times the sharing feature has been enabled and disabled (0=WINDOW_ENABLED, 1=WINDOW_DISABLED, 2=BROWSER_ENABLED, 3=BROWSER_DISABLED)" > }, > + "LOOP_SHARING_ROOM_URL": { This needs opt-out review from one of the Telemetry peers.
Attachment #8612264 -
Flags: review?(standard8) → review+
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8612264 [details] [diff] [review] Patch 1.1: add telemetry hooks copy and email of room and direct call URLs Vladan, can you review the new histograms I added and their opt-out state?
Attachment #8612264 -
Flags: review+ → review?(vdjeric)
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8612265 [details] [diff] [review] Patch 2: add telemetry hooks for Hello rooms creation and deletion actions ...and the same for the one I added here?
Attachment #8612265 -
Flags: review?(vdjeric)
Reporter | ||
Comment 13•9 years ago
|
||
Comment on attachment 8612265 [details] [diff] [review] Patch 2: add telemetry hooks for Hello rooms creation and deletion actions Review of attachment 8612265 [details] [diff] [review]: ----------------------------------------------------------------- Looks good r+ subject to the opt-out review.
Attachment #8612265 -
Flags: review?(standard8) → review+
Comment 14•9 years ago
|
||
Comment on attachment 8612264 [details] [diff] [review] Patch 1.1: add telemetry hooks copy and email of room and direct call URLs Review of attachment 8612264 [details] [diff] [review]: ----------------------------------------------------------------- Which question is this seeking to answer? Are you just interested in 1) how commonly URLs are shared, and 2) how often each of the sharing methods is used? ::: toolkit/components/telemetry/Histograms.json @@ +7450,5 @@ > "description": "Number of times the sharing feature has been enabled and disabled (0=WINDOW_ENABLED, 1=WINDOW_DISABLED, 2=BROWSER_ENABLED, 3=BROWSER_DISABLED)" > }, > + "LOOP_SHARING_ROOM_URL": { > + "alert_emails": ["firefox-dev@mozilla.org", "mdeboer@mozilla.com"], > + "expires_in_version": "50", do we really need a year's worth of metrics on this?
Attachment #8612264 -
Flags: review?(vdjeric)
Comment 15•9 years ago
|
||
Comment on attachment 8612265 [details] [diff] [review] Patch 2: add telemetry hooks for Hello rooms creation and deletion actions Review of attachment 8612265 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/telemetry/Histograms.json @@ +7462,5 @@ > + "expires_in_version": "50", > + "kind": "enumerated", > + "n_values": 8, > + "releaseChannelCollection": "opt-out", > + "description": "Number of times a room action is performed (0=CREATE_SUCCESS, 1=CREATE_FAIL, 2=DELETE_SUCCESS, 3=DELETE_FAIL)" do you really want room creation & room deletion in the same histogram? are you interested in comparing, e.g. how common it is fail to create a room vs fail to delete a room? i'm guessing you'll be looking at these histograms' data in the histogram dash, right?
Attachment #8612265 -
Flags: review?(vdjeric)
Assignee | ||
Comment 16•9 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #14) > do we really need a year's worth of metrics on this? I guess not really, I just copy & pasted that number TBH. I can lower it down to ~6mo.
Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #15) > do you really want room creation & room deletion in the same histogram? are > you interested in comparing, e.g. how common it is fail to create a room vs > fail to delete a room? No, I don't think we'll be correlating the two actions like that. I simply grouped them together semantically, so that our PM can look at one graph for all room actions. > i'm guessing you'll be looking at these histograms' data in the histogram > dash, right? Yes, that's the idea. Well, I won't be looking at the data probably, but RT/ Chad et al. will. Do you have a suggestion perhaps that would make for a better histogram structure?
Flags: needinfo?(vdjeric)
Comment 18•9 years ago
|
||
(In reply to Mike de Boer [:mikedeboer] from comment #17) > Do you have a suggestion perhaps that would make for a better histogram > structure? - I would store measurements that are not directly related in different histograms, e.g. one histogram for room creation success vs failure, another histogram for room deletion vs failure. This also makes it easier to write automated monitoring tools, so you don't get meaningless alerts for example if the ratio of total # of creation failures vs total # of deletion failure changes in the histogram - I was asking if you guys will be using the histogram dash to determine how commonly URLs are shared because we're in the process of designing new Telemetry dashboards right now and we're trying to figure out if need to be able to get total event counts from dashboards, e.g. to determine that 150,000 room links were shared in Firefox 39
Flags: needinfo?(vdjeric)
Assignee | ||
Comment 19•9 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #18) > (In reply to Mike de Boer [:mikedeboer] from comment #17) > > Do you have a suggestion perhaps that would make for a better histogram > > structure? > > - I would store measurements that are not directly related in different > histograms, e.g. one histogram for room creation success vs failure, another > histogram for room deletion vs failure. This also makes it easier to write > automated monitoring tools, so you don't get meaningless alerts for example > if the ratio of total # of creation failures vs total # of deletion failure > changes in the histogram Alright, that's a good suggestion, thanks! :) > - I was asking if you guys will be using the histogram dash to determine how > commonly URLs are shared because we're in the process of designing new > Telemetry dashboards right now and we're trying to figure out if need to be > able to get total event counts from dashboards, e.g. to determine that > 150,000 room links were shared in Firefox 39 I think :RT would be quite interested to see that information in a glance on a dashboard! It might be _very_ useful to contact him to talk through a couple of ideas to match theory with practice.
Assignee | ||
Comment 20•9 years ago
|
||
Carrying over r=Standard8.
Attachment #8612264 -
Attachment is obsolete: true
Attachment #8615249 -
Flags: review?(vdjeric)
Assignee | ||
Comment 21•9 years ago
|
||
Carrying over r=Standard8.
Attachment #8612265 -
Attachment is obsolete: true
Attachment #8615250 -
Flags: review?(vdjeric)
Comment 22•9 years ago
|
||
Comment on attachment 8615250 [details] [diff] [review] Patch 2.1: add telemetry hooks for Hello rooms creation and deletion actions Review of attachment 8615250 [details] [diff] [review]: ----------------------------------------------------------------- Postponing review until we figure out approach over email
Attachment #8615250 -
Flags: review?(vdjeric)
Updated•9 years ago
|
Attachment #8615249 -
Flags: review?(vdjeric)
Assignee | ||
Updated•9 years ago
|
Attachment #8615249 -
Flags: review?(vdjeric)
Assignee | ||
Updated•9 years ago
|
Attachment #8615250 -
Flags: review?(vdjeric)
Comment 23•9 years ago
|
||
Comment on attachment 8615250 [details] [diff] [review] Patch 2.1: add telemetry hooks for Hello rooms creation and deletion actions Review of attachment 8615250 [details] [diff] [review]: ----------------------------------------------------------------- Postponing review until we figure out approach over email #2
Attachment #8615250 -
Flags: review?(vdjeric)
Comment 24•9 years ago
|
||
Comment on attachment 8615249 [details] [diff] [review] Patch 1.2: add telemetry hooks copy and email of room and direct call URLs Review of attachment 8615249 [details] [diff] [review]: ----------------------------------------------------------------- Postponing review until we figure out approach over email #2 :)
Attachment #8615249 -
Flags: review?(vdjeric)
Updated•9 years ago
|
Iteration: 41.2 - Jun 8 → 41.3 - Jun 29
Assignee | ||
Updated•9 years ago
|
Attachment #8615249 -
Flags: review?(vdjeric)
Assignee | ||
Updated•9 years ago
|
Attachment #8615250 -
Flags: review?(vdjeric)
Comment 25•9 years ago
|
||
I'll take a look tomorrow, I'm on PTO today
Updated•9 years ago
|
Iteration: 41.3 - Jun 29 → 42.1 - Jul 13
Comment 26•9 years ago
|
||
Comment on attachment 8615249 [details] [diff] [review] Patch 1.2: add telemetry hooks copy and email of room and direct call URLs Review of attachment 8615249 [details] [diff] [review]: ----------------------------------------------------------------- r+ for the histogram
Attachment #8615249 -
Flags: review?(vdjeric) → review+
Comment 27•9 years ago
|
||
Comment on attachment 8615250 [details] [diff] [review] Patch 2.1: add telemetry hooks for Hello rooms creation and deletion actions Review of attachment 8615250 [details] [diff] [review]: ----------------------------------------------------------------- r+ for the histogram as previously discussed, you'll have to do custom analyses (vs looking at dashes) to interpret these
Attachment #8615250 -
Flags: review?(vdjeric) → review+
Comment 28•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/2a48b9407b97 https://hg.mozilla.org/integration/fx-team/rev/6d0e5f55fd21
https://hg.mozilla.org/mozilla-central/rev/2a48b9407b97 https://hg.mozilla.org/mozilla-central/rev/6d0e5f55fd21
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Assignee | ||
Comment 30•9 years ago
|
||
Comment on attachment 8615249 [details] [diff] [review] Patch 1.2: add telemetry hooks copy and email of room and direct call URLs Approval Request Comment [Feature/regressing bug #]: Firefox Hello, no bug. [User impact if declined]: Hello rooms have been introduced a long time ago, but we weren't measuring their usage from the client. The loop-server does cover some of the metrics, but not as complete as implemented here. For our product owner it's important to _know_ during this phase of the product. [Describe test coverage new/current, TreeHerder]: landed on m-c, tests pass. [Risks and why]: minor. [String/UUID change made/needed]: n/a.
Attachment #8615249 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 31•9 years ago
|
||
Comment on attachment 8615250 [details] [diff] [review] Patch 2.1: add telemetry hooks for Hello rooms creation and deletion actions Approval Request Comment [Feature/regressing bug #]: Firefox Hello, no bug. [User impact if declined]: Hello rooms have been introduced a long time ago, but we weren't measuring their usage from the client. The loop-server does cover some of the metrics, but not as complete as implemented here. For our product owner it's important to _know_ during this phase of the product. [Describe test coverage new/current, TreeHerder]: landed on m-c, tests pass. [Risks and why]: minor. [String/UUID change made/needed]: n/a.
Attachment #8615250 -
Flags: approval-mozilla-aurora?
Comment 32•9 years ago
|
||
Comment on attachment 8615249 [details] [diff] [review] Patch 1.2: add telemetry hooks copy and email of room and direct call URLs Approving for Aurora uplift because minor risks, has been on m-c for three days with no known issues.
Attachment #8615249 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 33•9 years ago
|
||
Comment on attachment 8615250 [details] [diff] [review] Patch 2.1: add telemetry hooks for Hello rooms creation and deletion actions Approving for Aurora uplift because minor risks, has been on m-c with no known issues.
Attachment #8615250 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 34•9 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/cf8f2ea74db0 https://hg.mozilla.org/releases/mozilla-aurora/rev/58fd619fde28
status-firefox41:
--- → fixed
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•