Intermittent Missing Traces #7020
-
Hi everyone, I’ve integrated OpenObserve with my Spring Boot project and am successfully receiving traces, metrics, and logs for most of my endpoints. However, I’m facing an issue where traces appear intermittently in OpenObserve. Logs for these endpoints are consistently visible, but traces are not reliably generated or exported. Context:
My Questions:
Thanks in advance for any guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think this has to do with your configuration. According to the documentation of Spring (https://docs.spring.io/spring-boot/reference/actuator/tracing.html): By default, Spring Boot samples only 10% of requests to prevent overwhelming the trace backend. This property switches it to 100% so that every request is sent to the trace backend. management:
tracing:
sampling:
probability: 1.0 So this is |
Beta Was this translation helpful? Give feedback.
Hi @sabith-nadakkavil
I think this has to do with your configuration.
This is related to Spring implementation, not the OpenTelemetry Java implemenation.
According to the documentation of Spring (https://docs.spring.io/spring-boot/reference/actuator/tracing.html):
By default, Spring Boot samples only 10% of requests to prevent overwhelming the trace backend. This property switches it to 100% so that every request is sent to the trace backend.
Configuration should look like this:
So this is
management.tracing.sampling.probability
, while in your config you have set it withmanagement.otlp.tracing.sampler.probability
.