This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from Dexterp37/gleanjs
Introduce Glean.js for collecting data
- Loading branch information
Showing
14 changed files
with
225 additions
and
8 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- AUTOGENERATED BY glean_parser. DO NOT EDIT. --> | ||
|
||
# Metrics | ||
|
||
This document enumerates the metrics collected by this project using the [Glean SDK](https://mozilla.github.io/glean/book/index.html). | ||
This project may depend on other projects which also collect metrics. | ||
This means you might have to go searching through the dependency tree to get a full picture of everything collected by this project. | ||
|
||
# Pings | ||
|
||
- [deletion-request](#deletion-request) | ||
- [onboarding](#onboarding) | ||
|
||
## deletion-request | ||
|
||
This is a built-in ping that is assembled out of the box by the Glean SDK. | ||
|
||
See the Glean SDK documentation for the [`deletion-request` ping](https://mozilla.github.io/glean/book/user/pings/deletion-request.html). | ||
|
||
All Glean pings contain built-in metrics in the [`ping_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-ping_info-section) and [`client_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-client_info-section) sections. | ||
|
||
In addition to those built-in metrics, the following metrics are added to the ping: | ||
|
||
| Name | Type | Description | Data reviews | Extras | Expiration | [Data Sensitivity](https://wiki.mozilla.org/Firefox/Data_Collection) | | ||
| --- | --- | --- | --- | --- | --- | --- | | ||
| rally.id |[uuid](https://mozilla.github.io/glean/book/user/metrics/uuid.html) |The id of the Rally client. |[Review 1](TODO)||never | | | ||
|
||
## onboarding | ||
|
||
All Glean pings contain built-in metrics in the [`ping_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-ping_info-section) and [`client_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-client_info-section) sections. | ||
|
||
In addition to those built-in metrics, the following metrics are added to the ping: | ||
|
||
| Name | Type | Description | Data reviews | Extras | Expiration | [Data Sensitivity](https://wiki.mozilla.org/Firefox/Data_Collection) | | ||
| --- | --- | --- | --- | --- | --- | --- | | ||
| rally.id |[uuid](https://mozilla.github.io/glean/book/user/metrics/uuid.html) |The id of the Rally client. |[Review 1](TODO)||never | | | ||
|
||
Data categories are [defined here](https://wiki.mozilla.org/Firefox/Data_Collection). | ||
|
||
<!-- AUTOGENERATED BY glean_parser. DO NOT EDIT. --> | ||
|
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,31 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# This file defines the metrics that are recorded by the Glean SDK. | ||
# APIs to use these pings are automatically generated at build time using | ||
# the `glean_parser` PyPI package. | ||
|
||
# Metrics in this file may make use of SDK reserved ping names. See | ||
# https://mozilla.github.io/glean/book/dev/core/internal/reserved-ping-names.html | ||
# for additional information. | ||
|
||
--- | ||
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0 | ||
|
||
rally: | ||
id: | ||
type: uuid | ||
lifetime: user | ||
send_in_pings: | ||
- deletion-request | ||
- onboarding | ||
description: | | ||
The id of the Rally client. | ||
bugs: | ||
- https://github.com/mozilla-rally/rally-core-addon/issues/117 | ||
data_reviews: | ||
- TODO | ||
notification_emails: | ||
- than@mozilla.com | ||
expires: never |
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
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,18 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import * as exec from "child_process"; | ||
|
||
// If this is not running on TaskCluster, exit | ||
// without an error code. | ||
if ('TASK_ID' in process.env) { | ||
console.log("Running in TaskCluster. Running set-up."); | ||
|
||
// The TaskCluster instance on the Mozilla add-ons pipeline | ||
// does not allow image customization, so python3 venv cannot | ||
// be installed. That package is required for Glean to build. | ||
// We make sure to have all the dependencies in place when on | ||
// TaskCluster by running the commands manually. | ||
exec.exec("sudo apt-get -y install python3-venv"); | ||
} |
Oops, something went wrong.