This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new e256bf9  Only configure OpenTracingTracer if Quarkus Jaeger tracing is 
enabled
e256bf9 is described below

commit e256bf92d2a1fc8600c6c258baae4c2feb8a32c0
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Thu Sep 9 15:25:51 2021 +0100

    Only configure OpenTracingTracer if Quarkus Jaeger tracing is enabled
    
    Fixes #3084
---
 .../quarkus/component/opentracing/deployment/OpenTracingProcessor.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/extensions/opentracing/deployment/src/main/java/org/apache/camel/quarkus/component/opentracing/deployment/OpenTracingProcessor.java
 
b/extensions/opentracing/deployment/src/main/java/org/apache/camel/quarkus/component/opentracing/deployment/OpenTracingProcessor.java
index 7d55fe9..d3f3b21 100644
--- 
a/extensions/opentracing/deployment/src/main/java/org/apache/camel/quarkus/component/opentracing/deployment/OpenTracingProcessor.java
+++ 
b/extensions/opentracing/deployment/src/main/java/org/apache/camel/quarkus/component/opentracing/deployment/OpenTracingProcessor.java
@@ -21,6 +21,7 @@ import io.quarkus.deployment.annotations.BuildStep;
 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;
@@ -35,7 +36,7 @@ class OpenTracingProcessor {
         return new FeatureBuildItem(FEATURE);
     }
 
-    @BuildStep
+    @BuildStep(onlyIf = JaegerEnabled.class)
     @Record(ExecutionTime.STATIC_INIT)
     CamelBeanBuildItem setupCamelOpenTracingTracer(CamelOpenTracingConfig 
config, CamelOpenTracingRecorder recorder,
             BeanContainerBuildItem beanContainer) {

Reply via email to