Skip to content

Disable trace exporting via propertiesΒ #34620

@kuldeep0508

Description

@kuldeep0508

With spring boot 2.x below mentioned dependency is required for Sleuth to send spans to Zipkin or a Zipkin compliant tracing distribution system.
implementation 'org.springframework.cloud:spring-cloud-sleuth-zipkin'

But with spring boot 3.x this ZipkinAutoConfiguration is deafult present in org.springframework.boot.actuate.autoconfigure and gets enabled when

management.tracing.enabled = true

So MS start sending the spans.

In our case we rely on istio for this task and our micro-services are not supposed to send any data to zipkin server.

But with upgrade to springboot 3 this feature gets enabled as default and we get an error in our logs stating unabled to connect with zipkin server as we have not configure our MS to do this task.

I check there is no property to control the enablement of this behaviour.

So is there any plan to provide any properties like below to control this behavior.

management.tracing.zipkin.enabled = true/false

And as a workaround should we write noopZipkinSpanHandler ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions