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

Add android.yaml and android.os.api.level resource attribute #328

Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ release.
- `state` to `system.network.state`
- Rename attributes for `system.processes.*` metrics:
- `status` to `system.processes.status`
- Introducing Android `android.os.api_level` resource attribute.
([#328](https://github.com/open-telemetry/semantic-conventions/pull/328))

## v1.21.0 (2023-07-13)

Expand Down
15 changes: 15 additions & 0 deletions docs/resource/android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Android

**Status**: [Experimental][DocumentStatus]

**type:** `android`

**Description**: The Android platform on which the Android application is running.

<!-- 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 |
<!-- endsemconv -->

[DocumentStatus]: https://github.com/open-telemetry/opentelemetry-specification/tree/v1.22.0/specification/document-status.md
14 changes: 14 additions & 0 deletions model/resource/android.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
groups:
- id: android
prefix: android
type: resource
brief: >
The Android platform on which the Android application is running.
attributes:
- id: os.api_level
type: string
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']