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.
4301: Merge day! r=rocketsroger a=pocmo New GeckoView versions! * browser-engine-gecko-beta (69) -> browser-engine-gecko-release (69) * browser-engine-gecko-nightly (70) -> browser-engine-gecko-beta (70) * browser-engine-gecko-nightly -> 71 This time I took some notes. I'll turn this into a documentation and then next time someone else can try them and perform the merge day changes. :) This also needs to be added to the changelog. But I'm heading out now for today. Will add that later. Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
- Loading branch information
Showing
30 changed files
with
1,212 additions
and
849 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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/. | ||
|
||
# IMPORTANT NOTE: this file is here only as a safety measure, to make | ||
# sure the correct code is generated even though the GeckoView AAR file | ||
# reports an empty metrics.yaml file. The metric in this file is currently | ||
# disabled and not supposed to collect any data. | ||
|
||
$schema: moz://mozilla.org/schemas/glean/metrics/1-0-0 | ||
|
||
test.glean.geckoview: | ||
streaming: | ||
type: timing_distribution | ||
gecko_datapoint: TELEMETRY_TEST_STREAMING | ||
disabled: true | ||
description: | | ||
A test-only, disabled metric. This is required to guarantee | ||
that a `GleanGeckoHistogramMapping` is always generated, even | ||
though the GeckoView AAR exports no metric. Please note that | ||
the data-review field below contains no review, since this | ||
metric is disabled and not allowed to collect any data. | ||
bugs: | ||
- 1566374 | ||
data_reviews: | ||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1566374 | ||
notification_emails: | ||
- glean-team@mozilla.com | ||
expires: never |
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
27 changes: 27 additions & 0 deletions
27
...ne-gecko-beta/src/main/java/mozilla/components/browser/engine/gecko/glean/GeckoAdapter.kt
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,27 @@ | ||
/* 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/. */ | ||
|
||
package mozilla.components.browser.engine.gecko.glean | ||
|
||
import mozilla.components.browser.engine.gecko.GleanMetrics.GleanGeckoHistogramMapping | ||
import org.mozilla.geckoview.RuntimeTelemetry | ||
|
||
/** | ||
* This implements a [RuntimeTelemetry.Delegate] that dispatches Gecko runtime | ||
* telemetry to the Glean SDK. | ||
* | ||
* Metrics defined in the `metrics.yaml` file in Gecko's mozilla-central repository | ||
* will be automatically dispatched to the Glean SDK and sent through the requested | ||
* pings. | ||
* | ||
* This can be used, in products collecting data through the Glean SDK, by | ||
* providing an instance to `GeckoRuntimeSettings.Builder().telemetryDelegate`. | ||
*/ | ||
class GeckoAdapter : RuntimeTelemetry.Delegate { | ||
override fun onTelemetryReceived(metric: RuntimeTelemetry.Metric) { | ||
// Note that the `GleanGeckoHistogramMapping` is automatically generated at | ||
// build time by the Glean SDK parsers. | ||
GleanGeckoHistogramMapping[metric.name]?.accumulateSamples(metric.values) | ||
} | ||
} |
Oops, something went wrong.