Skip to content

Commit

Permalink
Fix a condition that detects OpenTelemetry presence based on an OpenT…
Browse files Browse the repository at this point in the history
…racing class
  • Loading branch information
jmartisk committed Jun 1, 2023
1 parent 86fabfc commit 6569332
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ void registerNativeImageResources(BuildProducer<ServiceProviderBuildItem> servic
serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(EventingService.class.getName()));

// Add a condition for the optional eventing services
reflectiveClassCondition.produce(new ReflectiveClassConditionBuildItem(TracingService.class, "io.opentracing.Tracer"));
reflectiveClassCondition
.produce(new ReflectiveClassConditionBuildItem(TracingService.class, "io.opentelemetry.api.trace.Tracer"));

// Use MicroProfile Config (We use the one from the CDI Module)
serviceProvider.produce(ServiceProviderBuildItem.allProvidersFromClassPath(MicroProfileConfig.class.getName()));
Expand Down

0 comments on commit 6569332

Please sign in to comment.