This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #5371 - Introduce 'sync' ping, add 'syncUuid' to all sync-rela…
…ted pings This patch introduce an 'overarching' sync ping, which is meant to contain information describing a sync overall, vs individual engine runs. Currently it contains global sync errors. syncUuid was also added to all sync-related pings, allowing us to tie together in an analysis all pings that were emitted as part of a single "sync".
- Loading branch information
Grisha Kruglov
committed
Apr 13, 2020
1 parent
658f7f4
commit 879b8e3
Showing
7 changed files
with
531 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,47 @@ | |
|
||
$schema: moz://mozilla.org/schemas/glean/metrics/1-0-0 | ||
|
||
sync: | ||
sync_uuid: | ||
type: uuid | ||
description: > | ||
Unique identifier for this sync, used to correlate together individual pings for data types that | ||
were synchronized together (history, bookmarks, logins). If a data type is synchronized by itself via | ||
the legacy 'sync' API (as opposed to the Sync Manager), then this field will not be set on the corresponding ping. | ||
send_in_pings: | ||
- sync | ||
- history-sync | ||
- bookmarks-sync | ||
- logins-sync | ||
bugs: | ||
- https://github.com/mozilla-mobile/android-components/issues/5371 | ||
data_reviews: | ||
- https://github.com/mozilla-mobile/android-components/pull/5386#pullrequestreview-392363687 | ||
notification_emails: | ||
- [email protected] | ||
expires: never | ||
lifetime: ping | ||
failure_reason: | ||
type: labeled_string | ||
labels: | ||
- other | ||
- unexpected | ||
- auth | ||
description: > | ||
Records a global sync failure: either due to an authentication error, unexpected exception, | ||
or other error that caused the sync to fail. Error strings are truncated and sanitized to omit | ||
PII, like URLs and file system paths. | ||
send_in_pings: | ||
- sync | ||
bugs: | ||
- https://github.com/mozilla-mobile/android-components/pull/3092 | ||
data_reviews: | ||
- https://github.com/mozilla-mobile/android-components/pull/3092 | ||
notification_emails: | ||
- [email protected] | ||
expires: never | ||
lifetime: ping | ||
|
||
# `history-sync`, `logins-sync` and `bookmarks-sync` metrics all use the same structure, | ||
# but must be specified individually. We can't define them once and use | ||
# `send_in_pings` because the stores might be synced in parallel, and we can't | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,23 @@ | |
|
||
$schema: moz://mozilla.org/schemas/glean/pings/1-0-0 | ||
|
||
sync: | ||
description: > | ||
A summary ping, sent every time a sync is performed. During each Sync one or more data types | ||
could be synchronized, depending on which data types user configured to sync. Alongside with 'sync' ping | ||
one or more individual data type specific pings will be sent. For example, if history and bookmarks | ||
data types are configured to be synchronized, the following pings will be sent: 'sync', 'history-sync' | ||
and 'bookmarks-sync'. Alternatively, if only history is configured to be synchronized then 'sync' and 'history-sync' | ||
pings will be sent. In case of a "global failure" where none of the data type syncs could even start, | ||
e.g. device is offline, only the 'sync' ping will be sent. | ||
This ping doesn't include the `client_id` because it reports a hashed version of the user's Firefox Account ID. | ||
include_client_id: false | ||
bugs: | ||
- https://github.com/mozilla-mobile/android-components/issues/5371 | ||
notification_emails: | ||
- [email protected] | ||
data_reviews: | ||
- https://github.com/mozilla-mobile/android-components/pull/5386#pullrequestreview-392363687 | ||
history-sync: | ||
description: > | ||
A ping sent for every history sync. It doesn't include the `client_id` | ||
|
Oops, something went wrong.