Closed jshowalter2 closed 2 years ago
https://github.com/spring-projects-experimental/spring-cloud-sleuth-otel/blob/main/spring-cloud-sleuth-otel-autoconfigure/src/main/java/org/springframework/cloud/sleuth/autoconfig/otel/OtelBridgeConfiguration.java#L123 this class is not final. Can you please try the latest spring cloud sleuth OTel snapshots? Also if you're including the Sleuth OTel BOM you shouldn't be setting the versions yourself. Just rely on the BOM.
It's not blowing up on that class.
It blows up on https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/http/HttpClientAttributesExtractor.java#L23, which bubbles up to the above exception.
I tried shadowing HttpClientAttributesExtractor, but then it blew up on another final class, and it didn't seem there would be any end to it, because there are many final classes in Sleuth/OpenTelemetry repos.
OK so what do you want from Sleuth? It seems like a OTel problem not Spring's ?
If this doesn't belong in this repo, where does it belong?
They accepted it as a bug over in https://github.com/gradle/gradle/issues/20286
I see. Let me close the issue then in favour of https://github.com/gradle/gradle/issues/20286
gradle.properties:
build.gradle:
Latest Spring Boot.
Attempt to launch service, fails with "Cannot inherit from final class".
Stack: