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
0
votes
2 answers

Lost traceId between Spring Boot services 2.x and 3.0 version

I have multiple services running with Spring Boot 2.7 and I am starting to create new services with Spring Boot 3.0. And I have the same problem as in this other question but neither the accepted solution nor the attached migration guide has…
0
votes
1 answer

Micrometer doesn't work on Quartz after Spring Boot 3 migration

After migrating on spring boot 3, I changed spring-sleuth to micrometer. After that change traceId or spanId are no longer generated in methods, which are managed by Quartz Jobs. How to fix it?
0
votes
0 answers

Spring Boot 3 / reactor - accessing trace within WebFilter

Using spring-boot-starter-parent 3.0.6 with spring-boot-starter-webflux spring-boot-starter-security micrometer-tracing micrometer-tracing-bridge-otel I also use Hooks.enableAutomaticContextPropagation(); in my main @SpringBootApplication…
0
votes
0 answers

micrometer tracing with zipkin doesn't show all span in a trace

I'm using spring boot 3 and try to migrate to micrometer tracing ! In the zipkin interface, it shows me each trace with id and details, but doen't show me the spans ... I use this dependencies…
0
votes
0 answers

How do I extract micrometer TracingContext using Json log4j formatting

I currently have a spring boot project with log4j2, log4j-layout-template-json and, micrometer-tracing The for illustrative purposes, log message that gets created looks like the following: (note that newlines have been added to make this more…
0
votes
0 answers

Possibility to filter some spans created by Redis client

In my installation, I use Redis sentinel and it floods my spans collector with spans having db.operation | INFO like this one: I don't really understand why it happening and it is reproducible only in cloud installation, doesn't reproduce locally.…
Mitsuder
  • 13
  • 3
0
votes
1 answer

Spring Boot 3 micrometer trace and span IDs not propagating outside controller

We're moving from Spring Boot 2.x and Spring Cloud Sleuth to Spring Boot 3.x and Micrometer tracing. We're only interested in the trace and span IDs, and at least for the moment we're not interested in the observability. Where Sleuth did tracing…
SeverityOne
  • 2,476
  • 12
  • 25
0
votes
2 answers

Micrometer tracing disabled error: required a bean of type 'io.micrometer.tracing.Tracer' that could not be found

In my application I use the Tracer bean to get trace and span IDs: @Service @RequiredArgsConstructor public class SomeService { private final Tracer tracer; private TracingContext getTracingContext() { var context =…
0
votes
1 answer

How to add trace id to tracing log by spring boot 3 rsocket?

I try to upgrade spring boot from 2.7 to 3.0. and the project use rsocket. I was use Spring Cloud Sleuth to get trace id into log file. and upgrade to spring boot 3, change to use io.micrometer:micrometer-tracing. how do I add trace log into…
0
votes
2 answers

micrometer-tracing traceid and spanid don't show up in logs after upgrading from Spring Boot 3.0.2 to 3/4/5

Correlation ids were working fine in a Spring Boot 3.0.2 + Spring Cloud Gateway application with micrometer-tracing. After upgrading to any of the following releases of Spring Boot they don't show up in the logs any more. I tried using the updated…
codependent
  • 23,193
  • 31
  • 166
  • 308
0
votes
1 answer

micrometer tracing brave + rest template / web client

I am trying to propagate traceId from one service to another that is called by rest template / web client I'd expect that the traceId will be the same but in reality the new one is generated. service 1: @Bean public WebClient webClient() { …
Poklakni
  • 193
  • 2
  • 10
0
votes
1 answer

How to initialize micrometer/brave baggate field (spring boot 3)

I already manage to do so in Spring Boot 2.7.x but is a little bit different in Spring Boot 3. I added the following to initialize the baggage field if there is no related HTTP header public class FAPIAutoConfiguration { private static final…
0
votes
2 answers

How can I set custom tags through properties when using Micrometer Tracing with Spring Boot 3

When using Spring Boot 2.x with Spring Sleuth based tracing, we can configure the custom tags for Spans using properties in the application.properties file. Example: spring.sleuth.otel.resource.attributes.CUSTOM-KEY=CUSTOM-VALUE Since Spring Boot…
0
votes
1 answer

How to use SimpleTracer from Micrometer Tracing testing

I'm trying to write a simple test for an application using Spring Boot 3 + Micrometer Tracing Rest Controller: @RestController @RequestMapping("/customers2") @Slf4j public class CustomerController { @Autowired WebClient.Builder…
0
votes
0 answers

How to propagation context with trace-id in CommandLineRunner with spring boot 3 and micrometer?

After migration to spring boot 3 and micrometer tracing library. The tracing IDs aren't automatically appended to the logs for Classes which implement the CommandLineRunner interface unlike for rest controllers. Example code public class JobRunner…