Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting BeanDefinitionOverrideException while configuring Sleuth with Jaegar #1

Open
sunz1e opened this issue Jul 15, 2021 · 3 comments

Comments

@sunz1e
Copy link

sunz1e commented Jul 15, 2021

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
Copy link
Owner

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

@sunz1e
Copy link
Author

sunz1e commented Jul 17, 2021

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
Copy link
Owner

anoophp777 commented Jul 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants