open-telemetry / opentelemetry-android

OpenTelemetry Tooling for Android
Apache License 2.0
147 stars 33 forks source link

Add api level to resource #389

Open breedx-splk opened 4 months ago

breedx-splk commented 4 months ago

The semantic conventions include an Android specific attribute called android.os.api_level:

https://github.com/open-telemetry/semantic-conventions/blob/c98600cf91251effcb4eba4129711ecf45c3d4bf/docs/resource/android.md

This attribute is "recommended" so we should include it in the AndroidResource.

marandaneto commented 1 month ago

I think it's not needed for v1 since this can be added later, it is not a behavior or API surface breakage, unless doing this requires changes in the API surface