All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.solace.spring.cloud.stream.binder.config.SolaceTracerConfiguration Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy