javaspringspring-bootzipkinmicrometer-tracing

How to disable zipkin reporter in spring boot 3?


In spring boot 2 it was possible to disable distributed tracing during development as described here. Locally, traces were still generated but not exported.

In spring boot 3 it is possible it disable tracing at all with:

     management.tracing.enabled=false

How can I disable the zipkin reporter or distributed tracing in spring boot 3 but keep local tracing on?


Solution

  • Maybe by setting this property to 0.0?

    management.tracing.sampling.probability: 0.0