Skip to content

Commit

Permalink
Only configure OpenTracingTracer if Quarkus Jaeger tracing is enabled
Browse files Browse the repository at this point in the history
Fixes #3084
  • Loading branch information
jamesnetherton committed Sep 9, 2021
1 parent f82c0ea commit e256bf9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import io.quarkus.deployment.annotations.ExecutionTime;
import io.quarkus.deployment.annotations.Record;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.jaeger.deployment.JaegerEnabled;
import org.apache.camel.opentracing.OpenTracingTracer;
import org.apache.camel.quarkus.component.opentracing.CamelOpenTracingConfig;
import org.apache.camel.quarkus.component.opentracing.CamelOpenTracingRecorder;
Expand All @@ -35,7 +36,7 @@ FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

@BuildStep
@BuildStep(onlyIf = JaegerEnabled.class)
@Record(ExecutionTime.STATIC_INIT)
CamelBeanBuildItem setupCamelOpenTracingTracer(CamelOpenTracingConfig config, CamelOpenTracingRecorder recorder,
BeanContainerBuildItem beanContainer) {
Expand Down

0 comments on commit e256bf9

Please sign in to comment.