After going through a lot of posts, I concluded that it is not supported to-date. So the workaround that I have for now have three pieces
1.
@SpringBootApplication(exclude = ZipkinAutoConfiguration.class)
public class SomeSpringApplication {
....
}
@Configuration
@Import(ZipkinAutoConfiguration.class)
@ConditionalOnProperty(prefix = "management.tracing.zipkin", name = "enabled", matchIfMissing = true)
public class ZipKinEnvConfig {
}
In your properties file:
management.tracing.zipkin.enabled=false
If this property exists as false, local traces will work and not sent to Zipkin. If this property is true or not existing, traces will be sent out. I believe this is the same behavior as Spring 2.X property. The only annoying part to make this generic is the annotation on SpringBootApplication file :(
io.zipkin.reporter2:zipkin-reporter-brave
dependency – Saddlery