anoophp777 / spring-webflux-jaegar-log4j2

25 stars 5 forks source link

getting BeanDefinitionOverrideException while configuring Sleuth with Jaegar #1

Open sunz1e opened 3 years ago

sunz1e commented 3 years ago

Hello Anoop, I am getting following exception while trying to use Open Tracing with Sleuth. Did you face the same?

The bean 'tracer', defined in class path resource [org/springframework/cloud/sleuth/autoconfig/TraceAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [io/opentracing/contrib/java/spring/jaeger/starter/JaegerAutoConfiguration.class] and overriding is disabled.\n\nAction:\n\nConsider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true\n","logger":"org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter","thread":"main","level":"ERROR"}

anoophp777 commented 3 years ago

@meSunnySrivastava no. I've not faced this. Turn on overriding and see if this fixes the issue.

sunz1e commented 3 years ago

Hello @anoophp777 , Thanks for replying. I was able to resolve the issue. I have a question: Is it possible to emit Jaeger compatible spans from Sleuth? As per my understanding we can let the Zipkin span to be generated and collect it using Zipkin collector from Jaeger correct? Instead of emitting zipkin Spans can we emit Jaeger span? right now we are dependent upon Zipkin collector.

anoophp777 commented 3 years ago

Nope. Sleuth doesn't understand Jaeger spans, as far as I know. Things could have changed now. Check the latest documentation and see. Its been a while I worked on Jaeger.

On Sat, Jul 17, 2021 at 12:05 PM Sunny Srivastava @.***> wrote:

Hello @anoophp777 https://github.com/anoophp777 , Thanks for replying. I was able to resolve the issue. I have a question: Is it possible to emit Jaeger compatible spans from Sleuth? As per my understanding we can let the Zipkin span to be generated and collect it using Zipkin collector from Jaeger correct? Instead of emitting zipkin Spans can we emit Jaeger span?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/anoophp777/spring-webflux-jaegar-log4j2/issues/1#issuecomment-881842312, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIIRRBJ2DCSTNAH555KJ53TYEQCRANCNFSM5ANPXG2Q .