From 153b768fa620e3d69dd179bc0bec63d558213dc7 Mon Sep 17 00:00:00 2001 From: Miguel Luna <39376769+mlunadia@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:07:21 +0000 Subject: [PATCH] moving android to the registry attributes (#544) Signed-off-by: Miguel Luna <39376769+mlunadia@users.noreply.github.com> Co-authored-by: jason plumb <75337021+breedx-splk@users.noreply.github.com> Co-authored-by: Chris Mark Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com> --- docs/attributes-registry/README.md | 1 + docs/attributes-registry/android.md | 8 ++++++++ docs/resource/android.md | 2 +- model/registry/android.yaml | 15 +++++++++++++++ model/resource/android.yaml | 9 +-------- 5 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 docs/attributes-registry/android.md create mode 100644 model/registry/android.yaml diff --git a/docs/attributes-registry/README.md b/docs/attributes-registry/README.md index ada3b9534..113725054 100644 --- a/docs/attributes-registry/README.md +++ b/docs/attributes-registry/README.md @@ -27,6 +27,7 @@ All registered attributes are listed by namespace in this registry. Currently, the following namespaces exist: +* [Android](android.md) * [Browser](browser.md) * [Client](client.md) * [Cloud](cloud.md) diff --git a/docs/attributes-registry/android.md b/docs/attributes-registry/android.md new file mode 100644 index 000000000..e8539f2b7 --- /dev/null +++ b/docs/attributes-registry/android.md @@ -0,0 +1,8 @@ +# Android + +## Android Attributes + +| Attribute | Type | Description | Examples | +|---|---|---|---| +| `android.os.api_level` | string | Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). | `33`; `32` | + diff --git a/docs/resource/android.md b/docs/resource/android.md index 39daee5a8..aa635d29e 100644 --- a/docs/resource/android.md +++ b/docs/resource/android.md @@ -9,7 +9,7 @@ | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| -| `android.os.api_level` | string | Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). | `33`; `32` | Recommended | +| [`android.os.api_level`](../attributes-registry/android.md) | string | Uniquely identifies the framework API revision offered by a version (`os.version`) of the android operating system. More information can be found [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). | `33`; `32` | Recommended | [DocumentStatus]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/document-status.md diff --git a/model/registry/android.yaml b/model/registry/android.yaml new file mode 100644 index 000000000..cfdcac8a4 --- /dev/null +++ b/model/registry/android.yaml @@ -0,0 +1,15 @@ +groups: + - id: registry.android + prefix: android + type: attribute_group + brief: > + The Android platform on which the Android application is running. + attributes: + - id: os.api_level + type: string + stability: experimental + brief: > + Uniquely identifies the framework API revision offered by a version + (`os.version`) of the android operating system. More information can be found + [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). + examples: ['33', '32'] diff --git a/model/resource/android.yaml b/model/resource/android.yaml index cf4040f51..0f2b756eb 100644 --- a/model/resource/android.yaml +++ b/model/resource/android.yaml @@ -5,11 +5,4 @@ groups: brief: > The Android platform on which the Android application is running. attributes: - - id: os.api_level - type: string - stability: experimental - brief: > - Uniquely identifies the framework API revision offered by a version - (`os.version`) of the android operating system. More information can be found - [here](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels). - examples: ['33', '32'] + - ref: android.os.api_level