I'm using Spring Boot 3.5.7 and micrometer-tracing-bridge-otel.
My goal is to add the traceId in the logs.
I have the following configuration in my application.yml:
management:
tracing:
enabled: true
otel:
traces:
sampler:
probability: 1.0
I have a few endpoints that I want to exclude, meaning I don't want the traceId to appear for those specific endpoints.
How can I ignore these endpoints from tracing?
SpanExportingPredicatebean to exclude that?