opentelemetry-android v1.9.0: Startup Resilience and Clean Uninstalls
Version 1.9.0 of opentelemetry-android landed on November 19, 2026, built on OpenTelemetry Java Instrumentation 2.34.0 and the Java core 1.68.0. The theme of the release is isolation: bugs inside one instrumentation used to break the whole SDK or even the host app, and most of that is gone now. Many published artifacts still carry the -alpha suffix, so expect breaking changes in those modules.
The full release notes and download list are on the GitHub release page.
Corrected minimum supported versions
The documented minimums previously did not build. That is fixed and now verified on every pull request: Kotlin 2.1 (2.3 when using coroutines-library), AGP 8.12.0, Gradle 8.13, compileSdk 37, and JDK 17 at build time.
androidx.core returns to 1.18.0. That matters because the 1.7.0 to 1.8.1 jump required AGP 9.1; with 1.18.0, AGP 8 works again. Published modules now declare a minCompileSdk of 36 in their AAR metadata, up from 34, and the android-agent and okhttp3-agent modules declare 37, matching what OkHttp 5.5 already required.
Exceptions stay inside the SDK
Several fixes isolate failures in instrumentation code:
- An exception in a network attributes extractor, such as a custom one, no longer escapes into the connectivity callback. The network change event still fires with attributes from the other extractors.
- Tracing of activity lifecycle callbacks, ANR event emission, and slow rendering listener registration no longer push exceptions onto the host app’s main thread dispatch.
- A failure loading or running one instrumentation is now logged as a warning. The rest keep running, including instruments that throw during
install()oruninstall()or fail to load throughServiceLoader. - Disk buffering setup no longer leaves exporters unset when something other than an
IOExceptionis thrown, for example aSecurityExceptionon the cache directory. Any exception now falls back to exporting without buffering, and signals disabled in the configuration skip storage and reader setup entirely.
Startup and resource fixes
The SDK no longer crashes at startup on devices without a connectivity service, a problem seen on Android Automotive and headless devices. The HttpURLConnection instrumentation stops throwing a ClassCastException for non-HTTP connections like JarURLConnection.
Network attributes now pick up READ_PHONE_STATE when granted after startup, instead of waiting for a network change or restart. The permission check runs at most once per 3 seconds in the first 30 seconds, then at most once per 10 seconds, so the carrier name can change once per session.
Calling install() twice or uninstall() before or repeatedly no longer duplicates or leaks callbacks, receivers, and extractors across the lifecycle, ANR, crash, fragment, network change, power save mode, and orientation instrumentations. The ANR scheduler thread is created only when installed and shut down on removal. The slow rendering instrumentation no longer holds strong references to activities, so they can be garbage collected.
Agent DSL additions
shouldRecordWebsocketEventForHost { ... }filters OkHttp WebSocket events by host, and WebSocket events now includeserver.address.sessionProviderlets you plug a customSessionProviderinto thesession { ... }block.- An incubating
startNewSession()API starts a replacement session linked to the previous one. disableSessionId()anddisableScreenAttributes()turn off the matching attributes.- The OkHttp3, OkHttp3 WebSocket, and view click instrumentations support
uninstall(). - Native crash recovery gives up after three failed attempts per read or cleanup phase, or after 24 hours.
If you write custom instrumentations and hit crashes or leaks before, this release is worth updating for.
Where to get it
- Release page: opentelemetry-android v1.9.0
- Repository: open-telemetry/opentelemetry-android
- Tag:
v1.9.0