-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: glean metrics logic
- Loading branch information
Showing
15 changed files
with
458 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "glean" | ||
version.workspace = true | ||
license.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
chrono.workspace = true | ||
serde.workspace = true | ||
serde_derive.workspace = true | ||
serde_json.workspace = true | ||
uuid.workspace = true | ||
|
||
[lib] | ||
name = "glean" | ||
path = "src/lib.rs" |
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 |
---|---|---|
|
@@ -8,22 +8,20 @@ $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0 | |
|
||
# Category | ||
syncstorage: | ||
sync_event: | ||
get_collections: | ||
type: event | ||
description: | | ||
Event to record an instance of sync backend activity initiated by client. | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1923967 | ||
expires: never | ||
|
||
hashed_fxa_uid: | ||
type: uuid | ||
type: string | ||
# yamllint disable | ||
description: > | ||
User identifier. Uses `hashed_fxa_uid` for accurate count of sync actions. | ||
|
@@ -36,10 +34,12 @@ syncstorage: | |
of new keys being generated during resets or timeouts, whenever encryption | ||
keys change. | ||
# yamllint enable | ||
lifetime: application | ||
send_in_pings: | ||
- sync-dau | ||
- events | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
|
@@ -53,10 +53,12 @@ syncstorage: | |
Platform from which sync action was initiated. | ||
Firefox Desktop, Fenix, or Firefox iOS. | ||
# yamllint enable | ||
lifetime: application | ||
send_in_pings: | ||
- sync-dau | ||
- events | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
|
@@ -70,10 +72,12 @@ syncstorage: | |
Device family from which sync action was initiated. | ||
Desktop PC, Tablet, Mobile, and Other. | ||
# yamllint enable | ||
lifetime: application | ||
send_in_pings: | ||
- sync-dau | ||
- events | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
|
@@ -88,10 +92,12 @@ syncstorage: | |
entirely to associate opt-out or removal requests, as they make use of | ||
the "deletion-request" ping associated with the client side of Sync. | ||
# yamllint enable | ||
lifetime: application | ||
send_in_pings: | ||
- sync-dau | ||
- events | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
|
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,14 +4,12 @@ | |
$schema: moz://mozilla.org/schemas/glean/pings/2-0-0 | ||
|
||
# Name | ||
syncstorage: | ||
sync-dau: | ||
# Ping parameters | ||
description: | | ||
Ping record for sync active use metrics. | ||
notification_emails: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
bugs: | ||
- https://github.com/mozilla-services/syncstorage-rs/issues | ||
data_reviews: | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//! Module related to Glean server metrics. | ||
pub mod server_events; |
Oops, something went wrong.