Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving android to the registry attributes #544

Merged
merged 12 commits into from
Mar 6, 2024
1 change: 1 addition & 0 deletions docs/attributes-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions docs/attributes-registry/android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Android

## Android Attributes
<!-- semconv registry.android(omit_requirement_level) -->
| 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` |
<!-- endsemconv -->
2 changes: 1 addition & 1 deletion docs/resource/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- semconv android -->
| 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 |
<!-- endsemconv -->

[DocumentStatus]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.26.0/specification/document-status.md
15 changes: 15 additions & 0 deletions model/registry/android.yaml
Original file line number Diff line number Diff line change
@@ -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']
9 changes: 1 addition & 8 deletions model/resource/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading