Status: development
The Android Log instrumentation transforms calls to android.util.Log.x to emit
OTel log record.
This instrumentation produces the following telemetry:
- Type: Log
- Description: A log message
- Attributes:
android.log.tag: The tag passed toandroid.uti.Log.xexception.stacktrace- Optional. See the (semconv here).exception.type- Optional. See the (semconv here)
This instrumentation makes use of Byte Buddy to do bytecode instrumentation. Because of this, you need to ensure that your application has the Byte Buddy plugin applied, as shown below.
plugins {
id("net.bytebuddy.byte-buddy-gradle-plugin") version "LATEST_VERSION" // <1>
}- You can find the latest version here.
implementation("io.opentelemetry.android.instrumentation:android-log-library:1.6.0-alpha")
byteBuddy("io.opentelemetry.android.instrumentation:android-log-agent:1.6.0-alpha") // <2>