Status: development
The OpenTelemetry screen orientation instrumentation for Android will detect when the screen orientation changes.
This instrumentation produces the following telemetry, with an instrumentation
scope of io.opentelemetry.screen_orientation.
- Type: Event
- Name:
device.screen_orientation - Description: An event representing a change in screen orientation.
- Attributes:
screen.orientation- A string value that contains the new screen orientation. Values arelandscapeorportrait.
This instrumentation comes with the android agent out of the box, so if you depend on it, you don't need to do anything else to install this instrumentation. However, if you don't use the agent but instead depend on core directly, you can manually install this instrumentation by following the steps below.
implementation("io.opentelemetry.android.instrumentation:screen-orientation:LATEST_VERSION")