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
2
votes
1 answer

Propagating trace IDs across HTTP REST and Kinesis messaging service boundaries after migrating to Spring Boot 3.0.1/Spring Cloud 2022.0.0

I am in the middle of migrating code from Spring Boot 2.7.7/Spring Cloud 2021.0.5 to Spring Boot 3.0.1/Spring Cloud 2022.0.0. As part of this migration, I now am using io.micrometer:micrometer-tracing-bridge-otel. While I have my code functionally…
2
votes
3 answers

Tracing of logs with @Scheduled in spring boot 3.0

Since moving to spring boot 3.0 tracing has stopped working with scheduled jobs @Scheduled(fixedDelay = 69, timeUnit = TimeUnit.SECONDS) According to migration docs we should be wrapping the executor service with…
2
votes
2 answers

Migrating Sleuth to Observation API by Micrometar Spring Boot 3.0.0

We have Sleuth enabled on all endpoints Spring 2.7.x ( that comes out of the box). Just plain and simple traceId/spanId tracking. Now as in Spring Sleuth is no more available in Spring Boot 3.0.0. Is there a way to enable this new Observation Api on…
2
votes
1 answer

Spring Boot 3 Webflux application with Micrometer Tracing not showing traceId and spanId in the console logs

I'm replacing Spring Cloud Sleuth to generate log correlation with the new Micrometer Tracing for Spring Boot 3. I've been following this blog post to configure a sample project The traceId/spanId don't seem to be automatically generated per…
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

TracingClientHttpRequestInterceptor equivalent for Apache http client

I've been attempting to set up distributed tracing using Spring Micrometer. To propagate the traceId across various services, it appears necessary to configure our HTTP clients to include this information in the headers. For the RestTemplate client,…
1
vote
0 answers

micrometer-tracing not working in spring boot 3 JMS listener application

I have a spring boot application which uses Spring Boot 3, micro-meter tracing dependency. it is a JMS listener application.it is used to log trace and span id before the migration when it used to use sleuth. I tried to create…
KRK
  • 11
  • 2
1
vote
1 answer

Local fields missing in micrometer.tracing as compared to sleuth

I'm migrating a project form Spring Boot 2.7 to 3.1 and one of the steps is migrating sleuth to micrometer.tracing. In sleuth there was this property: sleuth.baggage.local-fields used to denote local fields in baggage, but I don't see an equivalent…
rattaman
  • 506
  • 3
  • 15
1
vote
1 answer

Why is Tracer.getCurrentSpan() not working in spring cloud gateway after switching from sleuth to micrometer

Tracer.getCurrentSpan() does return null in my globalFilter on a spring cloud gateway service after i've switched from spring cloud sleuth to micrometer tracing. I'm using spring boot 3.1.x, micrometer-tracing 1.1.2 and…
1
vote
1 answer

How to set a custom Trace ID value in Micrometer-Tracing

I'd like to create and activate a Span with a given Trace ID value instead of an autogenerated one. Context: I am using OpenTelemetry bridge. Trace ID is sent using custom header (not traceparent). I still want the traceparent header to work like it…
1
vote
0 answers

Capturing X-B3-TraceId and X-B3-SpanId in Spring Boot 3 with Micrometer

Previously, in the application using Spring Boot 2.1.8, the traceId and spanId were successfully captured using the provided encoder format in logback.xml:
Digital
  • 549
  • 1
  • 7
  • 26
1
vote
2 answers

Tracing between applications on spring boot 2 and spring boot 3

I have several Spring Boot applications, one of which is using Spring Boot 3 and the others are using Spring Boot 2. I need to implement request tracing between them and between them and Kafka. However, I haven't found anything on how to integrate…
1
vote
1 answer

How to configure zipkin baseUrl in SpringBoot 3

We have Jaeger setup to trace calls primarily between the istio proxies. I'm trying to use tracing inside the application, include any traceId/spanIds in the logs and report back to the Jaeger collector any spans created within the application. Most…
1
vote
0 answers

What is the equivalent of TraceWebFilter with Micrometer Tracing?

Similar to ReactorNettyHttpTracing (deprecated) equivalent in Micrometer Tracing I am looking for the equivalent of org.springframework.cloud.sleuth.instrument.web.TraceWebFilter with the Micrometer Tracing
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
0 answers

All traces lost after migration to SpringBoot 3

I have an issue related to traces after the migration of a Sping CLoud Stream app to SpringBoot 3. The code of the app is just in one class: package com.example.micrometer; import io.micrometer.observation.ObservationRegistry; import…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
1
vote
2 answers

Distributed tracing with kafka spring boot 3 and opentelemetry not working

I wanted to try out tracing between a spring boot 3 Kafka producer and consumer. I followed the examples from https://spring.io/blog/2022/10/12/observability-with-spring-boot-3 The traceID is added automatically when I make an API call using…