com.solace.spring.cloud.stream.binder.config.SolaceTracerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-stream-binder-solace Show documentation
Show all versions of spring-cloud-stream-binder-solace Show documentation
A Spring Cloud Stream Binder implementation using the Solace Java API (JCSMP)
The newest version!
package com.solace.spring.cloud.stream.binder.config;
import com.solace.spring.cloud.stream.binder.tracing.TracingImpl;
import com.solace.spring.cloud.stream.binder.tracing.TracingProxy;
import io.micrometer.tracing.Tracer;
import io.micrometer.tracing.propagation.Propagator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@ConditionalOnBean({Tracer.class, Propagator.class})
@Configuration
public class SolaceTracerConfiguration {
@Bean
public TracingImpl tracingImpl(@Autowired Tracer tracer, @Autowired Propagator propagator) {
return new TracingImpl(tracer, propagator);
}
@Bean
public TracingProxy tracingProxy(TracingImpl tracing) {
return new TracingProxy(tracing);
}
}