-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the text metric for Kotlin and Swift
- Loading branch information
Showing
11 changed files
with
563 additions
and
21 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
16 changes: 16 additions & 0 deletions
16
glean-core/android/src/main/java/mozilla/telemetry/glean/private/TextMetricType.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,16 @@ | ||
/* 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.telemetry.glean.private | ||
|
||
/** | ||
* This implements the developer facing API for recording text metrics. | ||
* | ||
* Instances of this class type are automatically generated by the parsers at build time, | ||
* allowing developers to record values that were previously registered in the metrics.yaml file. | ||
* | ||
* The text API only exposes the [set] method, which takes care of validating the input | ||
* data and making sure that limits are enforced. | ||
*/ | ||
typealias TextMetricType = mozilla.telemetry.glean.internal.TextMetric |
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,12 @@ | ||
/* 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 implements the developer facing API for recording text metrics. | ||
/// | ||
/// Instances of this class type are automatically generated by the parsers at build time, | ||
/// allowing developers to record values that were previously registered in the metrics.yaml file. | ||
/// | ||
/// The text API only exposes the `TextMetricType.set(_:)` method, which takes care of validating the input | ||
/// data and making sure that limits are enforced. | ||
public typealias TextMetricType = TextMetric |
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
Oops, something went wrong.