My structure log is Logstash, and I see my trace ID in every microservice log. However, my trace ID is not the same in all requests between microservices. How can I ensure that trace context (traceparent/baggage) is automatically propagated when using OpenFeign in Spring Boot 3.4 with Micrometer and OpenTelemetry?
All microservices have these dependencies:
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
my spring property config:
management:
tracing:
sampling:
probability: 1.0 # report 100% of traces