Skip to content

Disabling Zipkin breaks start up #1191

@evenh

Description

@evenh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions