-
Notifications
You must be signed in to change notification settings - Fork 784
Closed
Labels
Milestone
Description
OpenTracingAutoConfiguration creates a Brave Tracer if OpenTracing classes are on the classpath.
This crashes the app if a non-brave OT implementation is used. To Repro:
- Launch SpringBoot2 with a Datadog JavaAgent with no Brave classes present: https://docs.datadoghq.com/tracing/setup/java/#installation-and-getting-started
- App will crash on startup:
java.lang.ClassNotFoundException: brave.opentracing.BraveTracer
As a workaround, the OT configuration can be disabled.
Seems like a simple fix would be to add a check for a brave implementation to the OT autoconfiguration.
@ConditionalOnClass(Tracer.class, BraveTracer.clss)
Happy to open a PR if that helps.