question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling Zipkin breaks start up

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
TYsewyncommented, Jan 23, 2019

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.

2reactions
marcingrzejszczakcommented, Jan 23, 2019

@EnableConfigurationProperties(ZipkinProperties.class) - this is the best workaround

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found