Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Screen Orientation Instrumentation

Status: development

The OpenTelemetry screen orientation instrumentation for Android will detect when the screen orientation changes.

Telemetry

This instrumentation produces the following telemetry, with an instrumentation scope of io.opentelemetry.screen_orientation.

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 are landscape or portrait.

Installation

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.

Adding dependencies

implementation("io.opentelemetry.android.instrumentation:screen-orientation:LATEST_VERSION")