-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Disable trace exporting via properties #34620
Comments
It worked thanks :) , but it may be good for a better control over it we can have a property for enable or disable it in future. |
In Boot, we refrain from adding |
I understand this argument for Spring Boot 3.3.x. However with Spring Boot 3.2.x and before, Brave 5.x is used and there |
In that case, please use the auto-configuration disable feature, as I said here. We won't add an |
Why should we mess our config with autoconfig exclusions? |
I have Zipkin on the classpath as application will use zipkin exporter when deployed in such environment. |
I fully agree with @rivancic . Autoconfiguration is so versatile and dependable. |
Exactly we need to disable exporter for some reasons (tests, local env, maybe you dont need to export spans on every dev/test env). Removing zipkin from classpath is not option as we would have to make new build for each env. So having zipkin on classpath as signal is not the best option. Disabling autoconfiguration in yaml/properties is not user friendly from my point of view because we have to know all the autoconfigs relying on this signal instead of one shared enabled property. For example for redis there are 2 autoconfigs one relying on classpath and one relying on property it is quite confusing. I understand the argument there is complexity to have many ways to do the same thing, but our arguments are also valid I think. |
We talked about that and decided to add a With these properties, users can disable the exporting of data without fiddling with the classpath. |
There are now three new properties, which control the trace exporting on a more fine-grained level: - management.tracing.otlp.enabled - management.tracing.wavefront.enabled - management.tracing.zipkin.enabled They default to null, and if set, take precedence over the global management.metrics.enabled property. Closes spring-projectsgh-34620
Changes are here and ready to be merged as soon as we have our |
There are now three new properties, which control the trace exporting on a more fine-grained level: - management.otlp.tracing.export.enabled - management.wavefront.tracing.export.enabled - management.zipkin.tracing.export.enabled They default to null, and if set, take precedence over the global management.metrics.enabled property. Closes spring-projectsgh-34620
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 inorg.springframework.boot.actuate.autoconfigure
and gets enabled whenmanagement.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
?The text was updated successfully, but these errors were encountered: