Questions tagged [micrometer-tracing]

Micrometer Tracing provides a simple facade for the most popular tracer libraries, letting you instrument your JVM-based application code without vendor lock-in. It is designed to add little to no overhead to your tracing collection activity while maximizing the portability of your tracing effort.

https://micrometer.io/docs/tracing

73 questions
8
votes
1 answer

Spring boot 3 issue with micrometer tracing with handling Traceparent header

I have below code which handle requests from other apps which pass the traceId through Traceparent header. I expect it will hydrate the parent traceId from the request, and in zipkin dashboard I should see the connection between this app and other…
6
votes
2 answers

How to exclude some uri to be observed using springboot3/micrometer

Hy I am using springboot 3 with the new micrometer observation. Is there a way to prevent generating a trace_id/span_id for some paths like /actuator/prometheus? Observation add a trace id for each call to /actuator/*. Thank you
farid
  • 313
  • 1
  • 2
  • 7
5
votes
0 answers

Custom Async Executor with Tracing in Spring Boot 3

I'm migrating a Spring Boot project to version 3. The project uses asynchronous task and tracing. Following the documentation on Micrometer GitHub wiki, we tried to define the Async executor like that: @Configuration(proxyBeanMethods =…
5
votes
2 answers

How to test traceId propagation with WebTestClient + Micrometer Tracer?

After migration to Spring Boot 3 and refactor from Sleuth to Micrometer, I am no more able to test traceId propagation with WebTestClient + Tracer. My test here, is to have a simple @RestController where I expect the traceId being propagated through…
4
votes
0 answers

Spring Boot v3.1.0 Webflux Micrometer Tracing Logging Trace and Span IDs

I have a Spring Boot service that I am trying to implement tracing using Micrometer Tracing. I assume all I had to do was include the the following in my pom.xml and it would just work: io.micrometer
4
votes
1 answer

Brave Baggage not working after switching from spring-cloud-sleuth to micrometer-tracing

I am updating my spring project to newer versions, and after updating I got the following message: Your project setup is incompatible with our requirements due to following reasons: Spring Cloud Sleuth is not compatible with this Spring Cloud…
Dfarrelly
  • 695
  • 2
  • 7
  • 24
4
votes
0 answers

Trace id propagation in Spring Boot 3 with Spring cloud streams and WebFlux

I tried to use spring cloud stream with kafka binder. But when I called WebClient in chain, then trace id is lost. My flow is 'external service' -> 'functionStream-in' -> 'http call' -> functionStream-out' -> 'testStream-in' -> 'testStream-out' ->…
4
votes
3 answers

Spring Boot 3 context propagation in micrometer tracing

Spring Boot 3 has changed context propagation in tracing. https://github.com/micrometer-metrics/tracing/wiki/Spring-Cloud-Sleuth-3.1-Migration-Guide#async-instrumentation They deliver now library to this issue. I guess I don't quite understand how…
user2590727
  • 441
  • 1
  • 6
  • 25
3
votes
1 answer

Springboot 3 + Micrometer Tracing: Tracer.currentSpan() null randomly while processing parallel GRPC calls

The value of io.micrometer.tracing.Tracer.currentSpan() becomes null for random calls at the server end. This happens when hitting the server with multiple parallel calls, and not if calls are made sequentially. This is the stack trace at server…
3
votes
1 answer

Can I continue using brave headers in spring boot 3 with micrometer

I started migrating to spring boot 3, and also spring-cloud-sleuth to micrometer (https://github.com/micrometer-metrics/tracing/wiki/Spring-Cloud-Sleuth-3.1-Migration-Guide#samples). Added this dependecies:
3
votes
4 answers

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: …
pero_hero
  • 2,881
  • 3
  • 10
  • 24
3
votes
0 answers

ReactorNettyHttpTracing (deprecated) equivalent in Micrometer Tracing

What would be the equivalent of ReactorNettyHttpTracing (deprecated) in Spring Boot 3 with Micrometer + Brave? @Bean public ReactorNettyHttpTracing reactorNettyHttpTracing(HttpTracing httpTracing) { return…
3
votes
2 answers

@NewSpan and @ContinueSpan support in Spring Boot 3

I created a demo application where I wanted to see how to setup tracing in Spring Boot 2 and in Spring Boot 3: https://github.com/Compile-Time/demo-tracing-in-spring-boot-2-and-3 The demo uses the following tracing dependencies for the Spring Boot 3…
2
votes
1 answer

TraceId in not getting pushed in logs when using micrometer

I am working on a demo project to enable distributed tracing on logs. I initially started with sleuth, but later on figured out that it is being migrated to micrometer(Sleuth is not compatible with spring boot 3.x) But out of my surprise I am not…
2
votes
1 answer

Micrometer tracing does not include the trace ID in the log

I need to include traceId in the logs for the microservice application. I'm using the micrometer tracing library, but the application is not printing logs with the Trace ID. Can someone please help me to add traceid with application logs? Below is…
Summy Saurav
  • 385
  • 1
  • 3
  • 8
1
2 3 4 5