Search in sources :

Example 1 with OpenTracingTracer

use of org.apache.camel.opentracing.OpenTracingTracer in project camel by apache.

the class OpenTracingAutoConfiguration method openTracingEventNotifier.

@Bean(initMethod = "", destroyMethod = "")
// Camel handles the lifecycle of this bean
@ConditionalOnMissingBean(OpenTracingTracer.class)
OpenTracingTracer openTracingEventNotifier(CamelContext camelContext, OpenTracingConfigurationProperties config) {
    OpenTracingTracer ottracer = new OpenTracingTracer();
    ottracer.init(camelContext);
    return ottracer;
}
Also used : OpenTracingTracer(org.apache.camel.opentracing.OpenTracingTracer) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

OpenTracingTracer (org.apache.camel.opentracing.OpenTracingTracer)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1