Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
258 views

Spring Integration / Sleuth / Logback -- What configuration is required so that, via TracingChannelInterceptor, the MDC is updated with given values

I'm using a framework which includes spring-cloud-sleuth (3.1.6) to do tracing but also for setting up the MappedDiagnosticContext (MDC) which is then used from logback appenders. I've added ...
al.truisme's user avatar
0 votes
1 answer
1k views

How to write custom trace sender in Spring Sleuth / Brave

My company has got custom distributed tracing solution. I've got Java client/proxy library ready for it, its able to send traces/spans to server. However I would like to integrate it with Spring Boot ...
Tomasz Modelski's user avatar
1 vote
1 answer
2k views

How parentId can be same when using spring cloud sleuth and brave?

I have three microservices, communicating via Kafka. I am using Brave's @Tracer. The trace id is generated consistently however the parentId is different in microservices 2 and 3. What can we generate ...
JustLift's user avatar
  • 173
1 vote
2 answers
836 views

Sleuth tracing is not working for transactional Kafka producers

Currently, we are using transactional Kafka producers. What we have noticed is that the tracing aspect of Kafka is missing which means we don't get to see the instrumentation of Kafka producers ...
wasiter's user avatar
  • 31
0 votes
1 answer
762 views

spring cloud gateway integrate spring cloud sleuth is 22% slower than using spring cloud gateway alone

When I use spring cloud gateway to integrate spring cloud sleuth, I find that the performance is much slower than using spring cloud gateway alone. Is there any optimization scheme? Machine ...
yanglaoda's user avatar
0 votes
3 answers
9k views

Spring sleuth Baggage key not getting propagated

I've a filter (OncePerRequestFilter) which basically intercepts incoming request and logs traceId, spanId etc. which works well, this filter lies in a common module which is included in other projects ...
Akhil's user avatar
  • 1,224
1 vote
1 answer
1k views

Where is X-B3-SpanId constant defined?

In https://static.javadoc.io/org.springframework.cloud/spring-cloud-sleuth-core/1.2.0.RELEASE/org/springframework/cloud/sleuth/Span.html#SPAN_ID_NAME there's a constant for X-B3-SpanId but that ...
Archimedes Trajano's user avatar
1 vote
1 answer
2k views

Brave Tracing in Kafka Headers

In SB2, Brave instruments Kafka messages with B3 headers by default, however I need to change the field names that are injected. E.g. X-B3-TraceId should be myEventTraceId. Is there an easy way to do ...
blackcompe's user avatar
  • 3,190
0 votes
3 answers
9k views

Setting a Span's trace id in Brave vs. Sleuth

I'm looking for the proper way to set the trace-id for a Span in Brave. Pre-Brave we had: Span span = Span.builder().traceId(someLong).build(); What's the brave equivalent? I have the following, but ...
blackcompe's user avatar
  • 3,190
0 votes
0 answers
1k views

How to propagate header values with different header names using sleuth/brave

I would like to propagate the request-foo header value received in a service (foo) to another header header-bar for service (bar). I would like to leverage sleuth/brave instrumentation for this ...
Zoltan Altfatter's user avatar
2 votes
1 answer
13k views

Adding custom trace id in sleuth

I am using sleuth 2.0.x, I want to add my own trace id apart from its own. I`m going through the given link https://cloud.spring.io/spring-cloud-static/spring-cloud-sleuth/2.0.0.RC2/single/spring-...
Akkave's user avatar
  • 443
0 votes
1 answer
50 views

Efficient distributed sequence

I've got a lot of applications, each one have her own log. I'm typically in a distributed logs problematic. To resolve this problematic, I'm using : Brave / Spring Sleuth to generate trace and span ...
Akah's user avatar
  • 1,920