Bug 1611240 - Adding telemetry for gecko build id and version r=Dexter

Differential Revision: https://phabricator.services.mozilla.com/D61641

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kris Taeleman 2020-02-06 17:31:14 +00:00
Родитель eb44d8db75
Коммит 6a4e0a3108
3 изменённых файлов: 72 добавлений и 0 удалений

Просмотреть файл

@ -480,6 +480,42 @@ browser.usage:
- 'main'
- 'content'
gecko:
version:
bug_numbers:
- 1611240
description: >
The version of the Gecko engine, example: '74.0a1'.
It consists of the major and minor version, followed by the release life cycle phase.
'a' stands for alpha or nightly, 'b' stands for beta.
The number behind the release life cycle phase indicates minor releases within the phase.
expires: never
kind: string
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- ktaeleman@mozilla.com
products:
- 'geckoview_streaming'
record_in_processes:
- 'main'
release_channel_collection: opt-out
build_id:
bug_numbers:
- 1611240
description: >
The build id of the Gecko engine, example: '20200205124310'.
It contains the time the build was created and is used as a unique id for the build.
expires: never
kind: string
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- ktaeleman@mozilla.com
products:
- 'geckoview_streaming'
record_in_processes:
- 'main'
release_channel_collection: opt-out
extensions.updates:
rdf:
bug_numbers:

Просмотреть файл

@ -10,6 +10,36 @@
$schema: moz://mozilla.org/schemas/glean/metrics/1-0-0
geckoview:
version:
description: >
The version of the Gecko engine, example: 74.0a1
type: string
lifetime: application
gecko_datapoint: gecko.version
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1611240
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1611240#c2
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- ktaeleman@mozilla.com
expires: never
build_id:
description: >
The Buildid of the Gecko engine, example: 20200205124310
type: string
lifetime: application
gecko_datapoint: gecko.build_id
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1611240
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1611240#c2
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- ktaeleman@mozilla.com
expires: never
page_load_progress_time:
type: timing_distribution
time_unit: millisecond

Просмотреть файл

@ -4517,6 +4517,12 @@ nsresult XREMain::XRE_mainRun() {
}
#endif /* MOZ_INSTRUMENT_EVENT_LOOP */
// Send Telemetry about Gecko version and buildid
Telemetry::ScalarSet(Telemetry::ScalarID::GECKO_VERSION,
NS_ConvertASCIItoUTF16(gAppData->version));
Telemetry::ScalarSet(Telemetry::ScalarID::GECKO_BUILD_ID,
NS_ConvertASCIItoUTF16(gAppData->buildID));
#if defined(MOZ_SANDBOX) && defined(XP_LINUX)
// If we're on Linux, we now have information about the OS capabilities
// available to us.