Move WEAVE_CONFIGURED and FXA_CONFIGURED into the telemetry environment
Categories
(Firefox :: Sync, defect, P2)
Tracking
()
People
(Reporter: markh, Assigned: tcsc)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sync-metrics])
Attachments
(2 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
pascalc
:
approval-mozilla-beta+
|
Details | Review |
3.54 KB,
text/plain
|
chutten
:
data-review+
|
Details |
Updated•9 years ago
|
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Reporter | ||
Updated•8 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
Reporter | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Reporter | ||
Comment 6•6 years ago
|
||
Reporter | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
Reporter | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Ok, i think the cleanest solution would be that some of your probes/metrics don't reset on subsession splits.
This could be achieved by introducing a new property in Scalars.yaml/Histograms.json.
Then you could say in e.g. Scalars.yaml:
services.sync:
configured:
kind: boolean
lifetime: application # This will make it not reset on subsession splits.
# ...
Then you only record services.sync.configured
once in a Firefox session and get the value sent in every main ping from that session.
@leif/mhammond: How is that for you?
@mreid: What do you think of adopting the lifetime feature from Glean early into Firefox Telemetry?
Should we do a lightweight proposal around this
Updated•6 years ago
|
Comment 14•6 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #13)
@mreid: What do you think of adopting the lifetime feature from Glean early into Firefox Telemetry?
Should we do a lightweight proposal around this
I think a proposal around this is a good idea, this change could definitely result in surprising behaviour at analysis time. For what it's worth I think adding lifetimes specifically for boolean scalars is pretty low risk and could be helpful for other things like this as well.
Comment 15•6 years ago
|
||
This seems like a nice solution, but do we have a rough idea about the timeline for implementing this new property? I'm not saying we need this fixed ASAP, but it would be nice if we could get something riding the trains ASAP - I've had a few people try to use this probe and I've had to do a lot of explaining about why doing things like select submission_date, sync_configured, count(distinct client_id) group by 1,2
is misleading :)
OTOH, we have more accurate counts of sync clients server-side, so from that perspective this isn't mission critical. however it is important for correlating sync usage to other browser metrics, as this can't be done with the server-side data.
Comment 16•6 years ago
|
||
For timeline, realistically i think that could hit the next Firefox release, 67.
It's not much work from the client-side technically, but we would need to collect feedback on this change first.
If you want to take something settled right now, i propose putting this into the Telemetry environment and working with data engineering to get this into the datasets you need it in.
Reporter | ||
Comment 17•6 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #13)
@leif/mhammond: How is that for you?
If it's good for @leif it's good for me :) However, I'm going to struggle to find the time to help implement this in the core telemetry framework.
Updated•6 years ago
|
Comment 18•6 years ago
|
||
(In reply to Mark Hammond [:markh] from comment #17)
(In reply to Georg Fritzsche [:gfritzsche] from comment #13)
@leif/mhammond: How is that for you?
If it's good for @leif it's good for me :) However, I'm going to struggle to find the time to help implement this in the core telemetry framework.
We would do those changes.
If you want to do something short-term, you can add a new property to TelemetryEnvironment.jsm (this is low effort).
Comment 19•6 years ago
|
||
:markh, can you think of any explanation for this: https://sql.telemetry.mozilla.org/queries/61690/source#158773 (note that this data is a 1% sample but its the relative differences that matter)
The number of clients with null
is to be expected based on the discussion in this bug, but it seems odd to me that the number of clients with sync_configured = true
and sync_configured = false
are roughly even. Given the account registration rates from the FxA pipeline (as a share of overall firefox users), I would expect false to outnumber true many times over, regardless of whether it is only recorded at session start.
Updated•5 years ago
|
Comment 20•5 years ago
|
||
To be able to track the right telemetry with sync decouple, we need to make sure that the sync_configured
probe is implemented correctly and should be triggered more frequently.
Reporter | ||
Comment 21•5 years ago
|
||
(In reply to Georg Fritzsche [:gfritzsche] from comment #13)
Ok, i think the cleanest solution would be that some of your probes/metrics don't reset on subsession splits.
This could be achieved by introducing a new property in Scalars.yaml/Histograms.json.
...
Dexter,
Georg isn't accepting needinfo requests, so I'm asking you :) Please redirect if you are the wrong person. Georg mentioned some improvements were being made to the telemetry modules to make recording this information possible - are they now capable of supporting this use-case?
Assignee | ||
Comment 23•5 years ago
|
||
I think it would be fine for us to just set this to true on syncs (or somewhere simliarly frequently called for sync users). It would mean it would never have a value of 0, but that's true of FXA_CONFIGURED now, which Leif indicated has the right semantics.
Updated•5 years ago
|
Comment 24•5 years ago
|
||
No movement on the Scalar lifetimes feature has happened in the past seven months, I'm afraid. Given our team's current focus on Glean, I think the least-worst course of action would be to add the necessary points of information to the Telemetry Environment.
I don't think we want to trigger new "main" pings each time these values change, so we'll probably want to follow the pattern we use when GFX features are updated: listen on a topic, update the value, do not call _onEnvironmentChange
.
Does this sound amenable?
Assignee | ||
Comment 25•5 years ago
|
||
:chutten, is there a reason we couldn't add a pref that indicates this value? That seems to be the easiest way to add things to the telemetry environment. It's also pretty unlikely that these values change frequently -- Users don't sign in/out often, but maybe I'm incorrect about your concern here.
(Alternatively, my initial plan in comment 23 was to move the WEAVE_CONFIGURED probe to somewhere it was more likely to be hit reliably (at the start of a sync, perhaps), and just record a 1. This would somewhat mirror how we behave for FXA_CONFIGURED, and be simpler to implement).
That said, providing
Assignee | ||
Comment 26•5 years ago
|
||
Ugh. I actually meant to just assign myself, and forgot this comment was here. I'm going to approach this by adding both of these to the environment, as suggested. It seems like the best approach. I'd edit the comment, but bugzilla won't let me 🤷♂️
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 27•5 years ago
|
||
Bug 1238810 (part 2) - Remove FXA_CONFIGURED and WEAVE_CONFIGURED telemetry histograms. r?markh,loines
Assignee | ||
Comment 28•5 years ago
|
||
I'm not sure who to request data-review from? Please redirect if I've chosen poorly.
Assignee | ||
Comment 29•5 years ago
|
||
Ah, I notice now that I've goofed up the arc
command somehow. This was supposed to be two patches...
Updated•5 years ago
|
Assignee | ||
Comment 30•5 years ago
|
||
Comment 31•5 years ago
|
||
Comment 32•5 years ago
|
||
Comment 33•5 years ago
|
||
Backed out changeset 3d7b77564cb7 (bug 1238810) for bc perma failures in browser_startup.js
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=272651508&repo=autoland&lineNumber=2881
Backout: https://hg.mozilla.org/integration/autoland/rev/cdd02235e1cad3984bab1112c22a2771b2119608
Assignee | ||
Comment 34•5 years ago
|
||
Okay, looks green on try now, time to give this another shot https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=273011511&revision=387cbe802fb247c81cc17997914f9c8c4b1cd65b
Comment 35•5 years ago
|
||
Comment 36•5 years ago
|
||
bugherder |
Assignee | ||
Comment 37•5 years ago
|
||
Comment on attachment 9100887 [details]
Bug 1238810 - Replace {FXA,WEAVE}_CONFIGURED with entries in the telemetry environment. r?chutten,markh,loines
Beta/Release Uplift Approval Request
- User impact if declined: Sync team will be unable to monitor how the sync and fxa separation will go, and thus issues users experience might not be detected.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Changes limited to code running on an observer notification emitted by sync, and doesn't trigger emitting a telemetry ping when it runs.
- String changes made/needed:
Comment 38•5 years ago
|
||
Marking 71 as affected since there is an uplift request.
Updated•5 years ago
|
Comment 39•5 years ago
|
||
Comment on attachment 9100887 [details]
Bug 1238810 - Replace {FXA,WEAVE}_CONFIGURED with entries in the telemetry environment. r?chutten,markh,loines
Telemetry update, covered by tests , uplift approved for 71 beta 6, thanks.
Comment 40•5 years ago
|
||
bugherder uplift |
Description
•