Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
27 views

How to propagate and clear thread context across JVMs for dynamic debug logging

I am trying to implement dynamic debug logging by populating a ThreadContext with specific attributes and filtering logs based on those attributes. Here’s what I have achieved so far: Within the same ...
Rahul verma's user avatar
0 votes
0 answers
16 views

Correlate traces for spans sent within Executors.newVirtualThreadPerTaskExecutor() for Springboot micrometer 3.4

We have a Springboot 3.4 web service with micrometer The endpoint is straightforward, the controller accepts an object, and inside the object, there is a list of messages to be sent via kafka. The ...
PatPanda's user avatar
  • 4,782
0 votes
0 answers
28 views
+50

Propagate/continue the traces from a client sending traces via custom headers in Springboot 3.4

We have a Springboot 3.4 web service with micrometer, serving traffic for two clients. Client one, we are lucky, is also using Springboot 3+. Like magic, Springboot is able to "propagate", &...
PatPanda's user avatar
  • 4,782
0 votes
0 answers
17 views

Datasource Micrometer not working with opentelemetry zero-code instrumentation

I am using the zero-code instrumentation Java agent in order to export traces from my Spring Boot app to Jager in otlp format. So far so good, but i need more than the autoconfiguration provided by ...
user24192264's user avatar
-1 votes
0 answers
27 views

Support to track URL along with URL Parameters in Datadog

We record various metrics, such as P95, effective Load, Failure count, and Success Count, which are grouped by URL. https://company.com/admin/reports?page={report_name} where the page query parameter ...
kamlesh sharma's user avatar
0 votes
0 answers
61 views

SpringBoot 3 application does not creating traceId and spanId when micrometer dependency is referred from another project

I'm trying to generate traceId and spanId in my application. However I've kept io.micrometer dependency in another common module (which does not have main). when I use common-modules jar in my ...
range121's user avatar
0 votes
0 answers
92 views

Spring boot 3.3.0 zipkin tracing with custom trace id

I have an issue after migrating to spring boot 3 with trace id, devs who maintaing upstream app did not check spring docs and update rest template creation using rest template builder, and our app ...
Dmytro Ileiko's user avatar
1 vote
0 answers
228 views

Springboot 3 Micrometer tracing Issue

We are using Springboot 3.1.4 and i have been trying to leverage the Micrometer based approach for distrubted tracing of the application. I have included the right build.gradle dependencies but the ...
sg2000's user avatar
  • 139
1 vote
1 answer
125 views

SpringBoot3 @KafkaListener does not have traceId

Using Spring Boot 2 everything works properly, because sleuth does it. But in SB3 sleuth is absent, and micrometer-tracing is used. <dependency> <groupId>io.micrometer</groupId&...
Darkin Rall's user avatar
0 votes
0 answers
48 views

how to use micrometer as a replacement of sleuth decorate queues with sprint boot 3.2.6

I was using mvn dependency in spring boot 2.* application <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-...
KJ21's user avatar
  • 83
0 votes
0 answers
49 views

When I learned Sleuth, I found that it was outdated, so I used Micrometer Tracing to replace it. How to integrate Spring Stream + RabbitMQ +Zipkin

When I learned Sleuth, I found that it was outdated, so I used Micrometer Tracing to replace it. How to integrate Spring Stream + RabbitMQ +Zipkin I've already connected Zipkin directly, but I don't ...
chenbihao's user avatar
0 votes
0 answers
29 views

Log W3C's parentId in Spring Boot 3 with micrometer/brave bridge [duplicate]

We're currently implementing W3C tracing and a requirement is that we log the span ID, trace ID and parent ID. Logging span and trace is easily done with pattern="Micrometer Trace ID[%X{traceId}] ...
N4zroth's user avatar
  • 1,344
1 vote
1 answer
426 views

TraceId in Spring Boot 3 is not propagated

I try to propagate the trace Id between micro service calls. It does not seem the RestTemplate propagates the traceId, even though I am using RestTemplateBuilder and have actuator and a tracing bridge ...
joachimp's user avatar
0 votes
0 answers
67 views

ObservationRegistry is not working with BeanDefinitionRegistryPostProcessor

stream: jms: services: usecase1: broker-url: broker-url for usecase1 user: user for usecase1 password: password for usecase1 usecase2: broker-url: ...
geeta's user avatar
  • 35
0 votes
0 answers
74 views

Set new trace Id for each loop iteration instead of using existing trace id

I have a spring boot 3.1.x application with dependency on micrometer-tracing and micrometer-tracing-bridge-otel libraries. There is a service bean that sends multiple http requests to a different ...
RKodakandla's user avatar
  • 3,474
-1 votes
1 answer
223 views

Springboot Kafka Consumer Not printing TraceId-SpanId in Logs received from Topic Message

Issue is in consumer logs traceid and spanid not getting printed. I have 2 apps Producer and Consumer. Both in springboot 3. Both are communicating via Kafka. Both have micrometer brave dependency. If ...
Arunabha Ghosh's user avatar
0 votes
1 answer
421 views

Spring boot 3 open telemetry how does the trace id propagation takes place

I am trying to implement observations and monitoring in my local application. I have a question that how is the trace id propagated from one application to another application. specifically how or ...
cjava's user avatar
  • 658
1 vote
1 answer
411 views

WebClient micrometer trace propagation is not working

Spring boot version 3.3.2 When using WebClient with each request to another microservice new traceId is created: api-gateway service -> order-service same traceID for api gateway and order service ...
KnOMM's user avatar
  • 13
0 votes
0 answers
204 views

Springboot micrometer Opentelemetry

I am trying to enable opentelemetry in a Springboot service using the approach here: https://docs.spring.io/spring-boot/3.3-SNAPSHOT/reference/actuator/tracing.html#actuator.micrometer-tracing.tracer-...
sg2000's user avatar
  • 139
2 votes
1 answer
197 views

SpringBoot 3.2.4: sleuth.reactor.instrumentation-type: decorate-queues replacement in micrometer

How to migrate/replace the below sleuth property in spring boot 3 with micrometer tracing? sleuth: reactor: instrumentation-type: decorate-queues The application is a webflux project On doing ...
Julie's user avatar
  • 53
0 votes
0 answers
65 views

Micrometer metric max equals zero when sum is higher than zero

In our project we measure time for outgoing calls to other grpc servers, but I met a situation when a metric _max is zero, but the same metric for _sum is higher than zero. @Slf4j @...
Данила Кононихин's user avatar
0 votes
0 answers
96 views

tracing bridge selection in micrometer

Background: Our system contains 40+ micro-services (spring-boot 3.2.x), they are all deployed on a Kubernetes cluster, logs are printed in the pods, and we use ELK stack (LogStash, ElasticSearch, ...
Jiandong's user avatar
0 votes
1 answer
203 views

Need help in initiating the trace context for non HTTP request

We are consuming the message from queue, process getting initiated in the service (having lot of logs in this service) immediately and invokes multiple downstream using HTTP rest client. we able to ...
nmanandhan's user avatar
0 votes
0 answers
411 views

Reactor Context lost after thread switch (in flatMap or WebClient exchange function)

So we're having issues with Project Reactor's automatic context propagation (Hooks.enableAutomaticContextPropagation()). As soon as the reactive stream switches execution thread we're losing the ...
sjanssen's user avatar
0 votes
1 answer
247 views

How can I propagate a dynamic header downstream with micrometer tracing?

I have: Spring Boot 3.3.+ io.micrometer:micrometer-tracing-bridge-brave Currently, we can set management.tracing.baggage.remote-fields=f-user and expect that the header f-user will be propagated ...
Artem Ptushkin's user avatar
0 votes
1 answer
583 views

TraceId and SpanId are not getting printed while using micrometer with spring boot

Trying to use micrometer for monolith application for tracing purpose but it is not appending traceId in logs. I've used these in my pom.xml and spring boot version is 3.2.0 and java 21 <...
akib's user avatar
  • 115
0 votes
1 answer
294 views

Micrometer Observation lowCardinalityKeyValue and highCardinalityKeyValue uses/use cases?

I do understand micrometer observation. And i see that it supports adding lowCardinalityKeyValue and highCardinalityKeyValue with something like below - Observation observation = Observation.start(&...
samshers's user avatar
  • 3,640
0 votes
0 answers
280 views

Alternative for lazyTraceExecutor in springBoot 3.x upgrade

I am replacing spring-cloud-sleuth with io.micrometer:micrometer-tracing-bridge-brave for my springboot:3.x upgrade. Can you confirm if below replacement is correct? public LazyTraceExecutor ...
priya Jain's user avatar
0 votes
0 answers
219 views

Springboot traceId and spanId not printing in logs

I have a springboot project v3.2.3 and java 17. I am not able to print the traceId and spanId after adding micrometer dependency. <dependency> <groupId>io.micrometer</groupId> ...
Mithun Nair's user avatar
0 votes
1 answer
283 views

When you create a new span directly in Observability, in what cases do you typically create it?

I'm implementing Observability with Springboot + OpenTelemetry + Micrometer. I'm still not sure when it's a good idea to create my own spans. When do you guys usually create your own spans ?
HyoD.k's user avatar
  • 15
0 votes
0 answers
179 views

Getting issues while adding baggages via 'micrometer-tracing-bridge-otel'

Background : I am trying to add a few common logging attributes in TraceContext scope as baggages in WebFilter, so that whenever we log any statement, we don`t have to add those common attributes ...
ImaranKhan's user avatar
2 votes
0 answers
600 views

MDC.getcopyofcontextmap() is null on migrating to Springboot 3

I migrated to springboot 3 and suddenly MDC has stopped working. ValueHeader.values().forEach { header -> val headerValue = req.getHeader(header.value) if (!headerValue....
newLearner's user avatar
1 vote
1 answer
615 views

Distributed tracing is not working with Spring WebFlux + Reactor Kafka

I use Spring WebFlux, Spring boot version is 3.2.0. I used native Reactor Kafka. Spring boot Sleuth is moved to Micrometer Tracing You can read it from here: Spring Cloud Sleuth’s last minor version ...
Nasibulloh Yandashev's user avatar
0 votes
1 answer
894 views

Tracing context is not propagated when using a CompletableFuture

The following test is not working as it should @Test void testContextPropagation() throws ExecutionException, InterruptedException { // create a new trace using the micrometer tracer coming from ...
François Rosière's user avatar
3 votes
1 answer
897 views

Spring boot 3.2.4 - micrometer - traceid and spanid not printing

I wanted to use micrometer ( as it is recommended over sleuth ) and implemented using https://docs.spring.io/spring-boot/3.3/reference/actuator/tracing.html see Issue - [contactdetailsservice,,] ...
Kris Swat's user avatar
  • 996
-1 votes
1 answer
77 views

App failed to start with exception: "Field tracing in MockServiceImpl required a bean of type 'brave.Tracing' that could not be found"

We have upgraded our project to Spring 3.0 After that the application is failing to start and throwing the below error. My pom.xml has below dependencies ` <dependency> <...
Madhavi vasantala's user avatar
1 vote
1 answer
470 views

How to pass the same traceId after consuming from Kafka using micrometer in springboot application

I am using micrometer tracing in my springboot application. My applicationhas an Api that send the data to a kafka topic and later consumes it. I want my application to have the same traceId ...
Alka Kumari's user avatar
0 votes
0 answers
125 views

Correlate logs from different threads within the same request with sleuth or micrometer

Using spring sleuth or micrometer, what happens if I have a class like this: public class Class1{ private Class2 class2; public ClientDataResponse find(List<ClientDataRequest> ...
fernando1979's user avatar
  • 1,937
0 votes
1 answer
607 views

Maintain the span from HTTP calls using feign clients with micrometer

using spring boot 3.1.5 I migrated my code from sleuth to micrometer for tracing. I have it working loggin traceId and spanId but as somebody already asked here Should Micrometer generate a new Span ...
fernando1979's user avatar
  • 1,937
1 vote
1 answer
926 views

Tracer.currentSpan()" is null for ErrorPages for Spring Boot 3

After migrating to Spring Boot 3 the micrometer traceId is null when redirecting to a org.springframework.boot.web.server.ErrorPage. I get this error: Cannot invoke "io.micrometer.tracing.Span....
Andreas Joensen's user avatar
1 vote
0 answers
89 views

BaggagedField update value not working in SpringBootTest after migrating from Spring boot 2.7.x to 3.2.3

I have Tracing library which by default propagate the CorrelationId and x-correlation-id into headers of the requests. That also provides a utility class which is used to set the custom correlationId ...
Prashant Chindhade's user avatar
3 votes
0 answers
952 views

Propagating & Managing TraceID across multiple events in Kafka

I'm working on a Spring Cloud Stream application where messages are produced to a Kafka topic and then consumed by another service. I'm aiming to propagate the TraceID across the complete flow for ...
Piyush Parmar's user avatar
4 votes
1 answer
533 views

Send traces to DataDog agentless with SpringBoot3 micrometer

I wish to send traces to DataDog using the latest SpringBoot 3 and micrometer. DataDog propose a way to use a "DataDog Agent" to help the process. However, I wish to send traces without the ...
kafkaobservability's user avatar
1 vote
2 answers
3k views

Spring Boot 3 Upgrade Executor context propagation sleuth to micrometer tracing

I am migrating my project from Spring boot version 2.7.4 to version 3.2.2. i need to use micrometer instead of sleuth how should I edit the "Executor" BEAN I mentioned below for asynchronous?...
kernel's user avatar
  • 733
1 vote
1 answer
879 views

Micrometer tracing logs missing with spring boot webclient

I am trying to get the logging working with the micrometer tracing library. I get the logging now almost correct through all my project except for a filter in the spring boot webclient. I use the ...
MrAndre's user avatar
  • 1,017
1 vote
0 answers
319 views

Is there a way to use a Spring managed bean and customize it to my usecase

I have a use case as described below. I am defining a webclient.builder like below. @Bean(“customBuilder) public Webclient.Builder customBuilder(Webclient.Builder builder) { return builder.headers()...
Bala Ji's user avatar
  • 53
0 votes
1 answer
1k views

Generating micrometer tracer traceId programatically

I have an integration test when I want to validate traceId being propagated. But when I try to create an new context and span it turns out to be always empty. How can I create a proper context as it ...
Damian's user avatar
  • 3,050
0 votes
0 answers
158 views

Set custom traceId in Spring WebFlux app with own value set via HTTP Header

Our team needs to push custom traceId into OTLP tracing, which is being generated on frontend side & published in our app via custom HTTP Header. At the moment this is not possible as micrometer ...
Marian Ferenc's user avatar
0 votes
1 answer
269 views

Springdoc/Swagger: Micrometer Tracing not passing to downstream. Require solution without RestTemplate

Similar to the problem here: Micrometer Tracing traceId not passing into downstream I am on Spring boot 3.1 and my downstream is on 2.7.x. We use openapi generator for our business logic and do not ...
Rishy Rane's user avatar
3 votes
1 answer
726 views

Baggage is shared between threads after Spring Boot 3 migration

While migrating from Sleuth to Micrometer, I found a race condition on the update of the MDC context map (complete example can be found here) that boils down to a wrong implementation of the ...
dcolazin's user avatar
  • 1,062