Repository navigation
Bundle consumer ProGuard rules for OTLP exporter - #9028
2748109647 wants to merge 1 commit into
Conversation
Signed-off-by: Alpha <2748109647@qq.com>
|
|
Pull request dashboard statusWaiting on the author · refreshed 2026-11-11 06:13 UTC Investigate required status check failures. Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9028 +/- ##
============================================
+ Coverage 90.33% 90.36% +0.02%
- Complexity 11017 11019 +2
============================================
Files 1021 1021
Lines 30124 30124
Branches 3933 3933
============================================
+ Hits 27214 27222 +8
+ Misses 1953 1942 -11
- Partials 957 960 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I investigated the failed matrix jobs:
The PR only adds the requested ProGuard consumer-rules resource, so these failures do not point to a failure in the changed module. I could not complete the local Gradle check because resolving the Kotlin 2.4.10 compiler dependency for |
Closes #9027
Problem
Android applications using the OTLP exporter can receive R8/ProGuard missing-class warnings for optional OpenTelemetry incubator and autoconfigure APIs. The OTLP module compiles against
api:incubatorandsdk-extensions:autoconfigure-spiascompileOnly, so consumers that do not include those optional artifacts currently need to copy suppression rules into their app.Change
Bundle the narrow
-dontwarnrules requested in the issue inMETA-INF/proguard/consumer-rules.profor theopentelemetry-exporter-otlpJAR. R8 can discover consumer rules from this JAR metadata, so Android consumers no longer need to duplicate them in application configuration. The rules do not keep classes or change runtime behavior.Verification
git diff --checkpassed.META-INF/proguard/consumer-rules.pro.:exporters:otlp:all:checkdid not complete. Gradle stalled while resolving the Kotlin 2.4.10 compiler dependency forbuildSrc; an offline retry confirmed that artifact is not cached.:exporters:otlp:all:checkand:exporters:otlp:all:build. The overall workflow remains failed: Java 21/25 runs had timeouts in unrelatedsdk:metrics:testIncubatingstress tests, macOS Testcontainers could not find Docker, and the Java 25 run could not resolvecodeload.github.comwhile downloading the declarative-config schema. The changed OTLP module tasks completed without a reported failure.