зеркало из https://github.com/mozilla/glean.git
Add locale to the client_info section
This commit is contained in:
Родитель
82cbdb57dc
Коммит
38607e3899
|
@ -52,6 +52,7 @@ Optional fields are marked accordingly.
|
|||
| `os_version` | String | The user-visible version of the operating system (e.g. "1.2.3") |
|
||||
| `android_sdk_version` | String | *Optional*. The Android specific SDK version of the software running on this hardware device (e.g. "23") |
|
||||
| `telemetry_sdk_build` | String | The version of the Glean SDK |
|
||||
| `locale` | String | The locale of the application (e.g. "es-ES") |
|
||||
|
||||
All the metrics surviving application restarts (e.g. `client_id`, ...) are removed once the application using the Glean SDK is uninstalled.
|
||||
|
||||
|
|
|
@ -436,6 +436,7 @@ open class GleanInternalAPI internal constructor () {
|
|||
GleanInternalMetrics.deviceManufacturer.setSync(Build.MANUFACTURER)
|
||||
GleanInternalMetrics.deviceModel.setSync(Build.MODEL)
|
||||
GleanInternalMetrics.architecture.setSync(Build.SUPPORTED_ABIS[0])
|
||||
GleanInternalMetrics.locale.setSync(getLocaleTag())
|
||||
|
||||
configuration.channel?.let {
|
||||
GleanInternalMetrics.appChannel.setSync(it)
|
||||
|
|
|
@ -137,6 +137,7 @@ public class Glean {
|
|||
GleanInternalMetrics.deviceManufacturer.setSync(Sysctl.manufacturer)
|
||||
GleanInternalMetrics.deviceModel.setSync(Sysctl.model)
|
||||
GleanInternalMetrics.architecture.setSync(Sysctl.machine)
|
||||
GleanInternalMetrics.locale.setSync(getLocaleTag())
|
||||
|
||||
if let channel = self.configuration?.channel {
|
||||
GleanInternalMetrics.appChannel.setSync(channel)
|
||||
|
|
|
@ -193,6 +193,21 @@ glean.internal.metrics:
|
|||
- glean-team@mozilla.com
|
||||
expires: never
|
||||
|
||||
locale:
|
||||
type: string
|
||||
lifetime: application
|
||||
send_in_pings:
|
||||
- glean_client_info
|
||||
description: |
|
||||
The locale of the application (e.g. "es-ES").
|
||||
bugs:
|
||||
- https://bugzilla.mozilla.org/1601489
|
||||
data_reviews:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1601489#c3
|
||||
notification_emails:
|
||||
- glean-team@mozilla.com
|
||||
expires: never
|
||||
|
||||
glean.error:
|
||||
invalid_value:
|
||||
type: labeled_counter
|
||||
|
|
|
@ -343,6 +343,7 @@ class Glean:
|
|||
metrics.glean.internal.metrics.os.set(platform.system())
|
||||
metrics.glean.internal.metrics.os_version.set(platform.release())
|
||||
metrics.glean.internal.metrics.architecture.set(platform.machine())
|
||||
metrics.glean.internal.metrics.locale.set(util.get_locale_tag())
|
||||
|
||||
sysinfo = hardware.get_system_information()
|
||||
metrics.glean.internal.metrics.device_manufacturer.set(sysinfo.manufacturer)
|
||||
|
|
Загрузка…
Ссылка в новой задаче