tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 6ead684b85b23a9862ad43d1f932787f130c864a
parent 41e840251edfd305b71014c4082566e21aeaf8b6
Author: Denis <dpalmeiro@mozilla.com>
Date:   Wed,  8 Oct 2025 15:11:08 +0000

Bug 1987912: Add channel property to the pageload base domain event. r=bas,data-stewards

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

Diffstat:
Mdom/metrics.yaml | 4++++
Mtools/performance/PageloadEvent.cpp | 6++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/dom/metrics.yaml b/dom/metrics.yaml @@ -226,6 +226,10 @@ perf: description: | ETLD+1 domain of website visited. type: string + channel: + description: | + Release channel of the build. Either "nightly" or "release" only. + type: string send_in_pings: - pageload-base-domain diff --git a/tools/performance/PageloadEvent.cpp b/tools/performance/PageloadEvent.cpp @@ -310,6 +310,12 @@ void PageloadEventData::SendAsPageLoadDomainEvent() { // Add some noise to any numerical metrics. extra.lcpTime = AddMultiplicativeNoise(this->lcpTime); +#ifdef NIGHTLY_BUILD + extra.channel = mozilla::Some("nightly"_ns); +#else + extra.channel = mozilla::Some("release"_ns); +#endif + // If the event is a page_load_domain event, then immediately send it. mozilla::glean::perf::page_load_domain.Record(mozilla::Some(extra));