Closed
Bug 671045
Opened 13 years ago
Closed 9 years ago
batch 'o telemetry metrics for sync
Categories
(Firefox :: Sync, defect, P2)
Firefox
Sync
Tracking
()
RESOLVED
DUPLICATE
of bug 1236383
People
(Reporter: Dolske, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
(See bug 671038 for more context)
Sync
Time to sync bookmarks
Time to sync history
Time to sync passwords
Time to sync cookies
...
Comment 1•12 years ago
|
||
Would also like to capture data on success vs failure. Would specifically like the ability to know when Sync starts failing for people. Would be nice to correlate this to specific time(s), servers, Firefox versions, specific engines.
Comment 2•10 years ago
|
||
An important metric we should be following explicitly: "user saw a sync error bar".
Updated•10 years ago
|
Points: --- → 3
Flags: qe-verify-
Flags: firefox-backlog+
Comment 3•10 years ago
|
||
This patch adds telemetry support for sync status. It's currently only 'success' or 'failure', but more detailed information (for example cause of failure) could be added to the enumeration in the future.
I didn't add any information on sync time, as :rnewman said there wasn't too much use for that.
Attachment #8515527 -
Flags: review?(gps)
Comment 4•10 years ago
|
||
Comment on attachment 8515527 [details] [diff] [review]
bug671045
Review of attachment 8515527 [details] [diff] [review]:
-----------------------------------------------------------------
Reassigning to rnewman since I'm not actively doing Sync foo these days.
Attachment #8515527 -
Flags: review?(gps) → review?(rnewman)
Comment 5•10 years ago
|
||
Comment on attachment 8515527 [details] [diff] [review]
bug671045
Review of attachment 8515527 [details] [diff] [review]:
-----------------------------------------------------------------
gfritzche just added some stuff that will help here:
---
Per bug 1069873 and bug 1069874, Telemetry now has:
* a new histogram type for counts (so there is no need anymore to use boolean histograms for that)
* keyed histograms, basically providing a key/value store (mapping string keys to histograms)
I updated the documentation accordingly:
https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Adding_a_new_Telemetry_probe
Updated•10 years ago
|
Attachment #8515527 -
Flags: review?(rnewman)
Comment 6•10 years ago
|
||
This new version uses the keyed count histograms.
Attachment #8515527 -
Attachment is obsolete: true
Attachment #8522460 -
Flags: review?(rnewman)
Comment 7•10 years ago
|
||
Comment on attachment 8522460 [details] [diff] [review]
bug671045-2.patch
Review of attachment 8522460 [details] [diff] [review]:
-----------------------------------------------------------------
Nearly!
You might consider moving this to engines.js instead of enginesync, so you have more fine-grained control over what really counts as failure or success.
::: services/sync/modules/stages/enginesync.js
@@ +206,5 @@
> // Here we simply want to muffle the exception and return an
> // appropriate value.
> + try {
> + let histogram = Services.telemetry.getKeyedHistogramById("SYNC_ENGINESYNC_FAILURE");
> + histogram.add(engine.name);
This shouldn't be in the 401 section, I think.
@@ +215,5 @@
> return false;
> }
> }
> + try {
> + let histogram = Services.telemetry.getKeyedHistogramById("SYNC_ENGINESYNC_SUCCESS");
This isn't quite correct.
If you look up to line 199, you'll see that we're calling engine.sync().
This will return successfully if the engine is disabled.
::: toolkit/components/telemetry/Histograms.json
@@ +6820,5 @@
> + "SYNC_ENGINESYNC_FAILURE": {
> + "expires_in_version": "never",
> + "kind": "count",
> + "keyed": true,
> + "description": "Stores the amount of enginesync failures by type of engine"
s/amount/number
s/enginesync/Sync engine
@@ +6826,5 @@
> + "SYNC_ENGINESYNC_SUCCESS": {
> + "expires_in_version": "never",
> + "kind": "count",
> + "keyed": true,
> + "description": "Stores the amount of successful enginesyncs by type of engine"
same
Attachment #8522460 -
Flags: review?(rnewman) → review-
Comment 8•10 years ago
|
||
Attachment #8541857 -
Flags: review?(rnewman)
Comment 9•10 years ago
|
||
/r/1745 - Bug 671045: add telemetry metrics on engine sync failure
Pull down this commit:
hg pull review -r ac3b3c124b374b9cd467ec3173fbdc8488ea478d
Updated•10 years ago
|
Attachment #8541857 -
Flags: review?(rnewman) → review+
Comment 10•10 years ago
|
||
https://reviewboard.mozilla.org/r/1743/#review1313
Looks good to me with these two changes.
::: services/sync/modules/engines.js
(Diff revision 1)
> + this._log.warn("Getting telemetry histogram failed for engine " + engine.name.toUpperCase() + ": " +
No need for the uppercasing here, I think.
::: services/sync/modules/engines.js
(Diff revision 1)
> + Utils.exceptionStr(ex));
I think you can now just do:
```
this._log.warn("...", ex);
```
and the right thing will happen.
Updated•10 years ago
|
Comment 11•10 years ago
|
||
Hi Mathias,
Anything else we can do to keep this moving forward?
Flags: needinfo?(mathias.demare)
Comment 12•10 years ago
|
||
Hi Mark,
I'm afraid I lost track of this bug.
It should be relatively simple to fix (the comments by Richard are easy to address), but I don't have time to focus on Mozilla in the next few weeks (I should be able to take care of it at the end of May though).
Alternatively, since it's just fixing a few small cosmetic parts of the patch, perhaps this is a good first bug for someone to finish?
Updated•10 years ago
|
Flags: needinfo?(mathias.demare)
Comment 13•10 years ago
|
||
Katie, wondering if you can help us with establishing some Sync client telemetry, and analysis.
Flags: needinfo?(kparlante)
Comment 14•10 years ago
|
||
Unfortunately, the measurement team cannot spare resources to help until unified telemetry is on solid footing https://bugzilla.mozilla.org/show_bug.cgi?id=671045
Flags: needinfo?(kparlante)
Comment 15•9 years ago
|
||
Attachment #8541857 -
Attachment is obsolete: true
Attachment #8617981 -
Flags: review+
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
I today's Sync meeting this came up again; we'd like to get an idea of ongoing and persistent failures with individual Sync engines. Pretty sure this bug can be repurposed.
Updated•9 years ago
|
Priority: -- → P2
Comment 18•9 years ago
|
||
Hi Chris, is this bug superseded by bug 8703490 et al or is it still relevant?
Flags: needinfo?(ckarlof)
Comment 19•9 years ago
|
||
georg, can you clarify which bug you're asking about? bug 8703490 isn't valid (typo?).
Flags: needinfo?(ckarlof) → needinfo?(gfritzsche)
Comment 20•9 years ago
|
||
Sorry, that was supposed to be bug 1236383 :)
Flags: needinfo?(gfritzsche) → needinfo?(ckarlof)
Comment 21•9 years ago
|
||
We report engine failures via https://dxr.mozilla.org/mozilla-central/rev/3f780f4b14acab29b16bc4141a44180a8af9dd08/services/sync/modules/policies.js#586, which helped us determine that addons are failing much more than they should be. Given the other work we are doing with telemetry, I think it's safe to dupe this to bug 1236383
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(ckarlof)
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•