Disabling Zipkin breaks start up
See original GitHub issueHi, thanks for a great project!
I just added Sleuth + Zipkin to a project I’m working on. When I’m disabling Zipkin with spring.zipkin.enabled=false
, the app fails at runtime with:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method spanBytesEncoder in org.springframework.cloud.sleuth.zipkin2.ZipkinBackwardsCompatibilityAutoConfiguration required a bean of type 'org.springframework.cloud.sleuth.zipkin2.ZipkinProperties' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.cloud.sleuth.zipkin2.ZipkinProperties' in your configuration.
Seems like a bug to me - just using Sleuth should still work. I’ve made a reproduction gist.
Dependencies
Dependency | Version |
---|---|
org.springframework.boot:spring-boot-starter-parent |
2.1.2.RELEASE |
org.springframework.cloud:spring-cloud-sleuth |
2.1.0.RELEASE |
org.springframework.cloud:spring-cloud-starter-zipkin |
2.1.0.RELEASE (managed by spring-cloud-sleuth) |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Spring Cloud Sleuth
To disable this feature just set spring.zipkin.discoveryClientEnabled to `false. When the Discovery Client feature is enabled, Sleuth uses LoadBalancerClient to ...
Read more >Disable sleuth for from storing some traces - Stack Overflow
I am using spring cloud finchley.rc2 with spring boot version 2 along with sleuth and zipkin. I have ...
Read more >Spring Cloud - Tracing Services with Zipkin - Baeldung
The new annotation @EnableZipkinServer will set up this server to listen for incoming spans and act as our UI for querying.
Read more >Distributed Tracing with Spring Cloud Sleuth And Zipkin
We would learn how we can implement distributed tracing in a Spring Boot Application and understand the key concepts of distributed tracing.
Read more >Distributed Tracing in Micoservices using Zipkin, Sleuth and ...
The `docker run`, command starts up Kibana on port 5601, ElasticSearch on port 9200 and LogStash on port 5044. Validate the kibana setup...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Or you could add
@EnableConfigurationProperties(ZipkinProperties.class)
to your own config, which will get you out of this startup problem too. 😃 In the meantime a fix has been created.@EnableConfigurationProperties(ZipkinProperties.class)
- this is the best workaround