Status: development
The crash instrumentation detects uncaught exceptions in the user application and reports these occurrences as telemetry.
This instrumentation produces the following telemetry:
- Type: Event
- Event Name:
device.crash - Description: An event that is generated for exceptions not handled by user code.
- Attributes:
exception.message(see semconv here)exception.stacktrace(see semconv here)exception.type(see semconv here)thread.id(see semconv here)thread.name(see semconv here)
Note: This instrumentation supports additional user-configurable AttributeExtractors that
may set additional attributes from the given CrashDetails (Thread and Throwable).
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:crash:1.2.0-alpha")