Questions tagged [spring-cloud-sleuth]
Spring Cloud Sleuth implements a distributed tracing solution for Spring Cloud, borrowing heavily from Dapper, Zipkin and HTrace.
616
questions
0
votes
1
answer
30
views
Spring Cloud Sleuth and spring boot 3 and the english language
Sorry for asking that. I'm not an English speaker, and Stackoverflow is the only website I have access to at my work
I need to use Spring Cloud Sleuth in a project currently in spring boot 2, but who ...
0
votes
0
answers
36
views
Using OpenTelemetry and JaegerUI with SpringBoot 2.5
I'm trying to build a monitoring system for a Springboot application. I need to send some metrics to an OpenTelemetry collector and then to Jaeger.
I'm setting up Jaeger and OpenTelemetry via docker ...
0
votes
0
answers
19
views
How do export metrics using OpenTelemetry and Spring Cloud Sleuth
My team is trying to get Spring Cloud sleuth to work with the Opentelemetry api. We observe that the spans, attributes (tags) and events are exported just fine to the OTEL collector.
The metrics we ...
1
vote
0
answers
90
views
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 ...
0
votes
1
answer
59
views
Headers not getting propagated with open-telemetry and spring-cloud-sleuth
I have integrated open-telemetry collector with spring-cloud-sleuth and trying to test distributed tracing with it. My basic requirement is if app1 receives a header for traceId, it should use the ...
0
votes
0
answers
54
views
Baggage field not getting added in same span in spring-cloud-sleuth with open-telemetry collector
I have integrated open-telemetry collector with spring-cloud-sleuth.
I have created a spring aspect where I am trying to add a custom baggage field serviceName to the current trace using following ...
2
votes
0
answers
43
views
How to manage tracing with Spring WebClient in Reactive way?
I have a method in EventService that calls an API and handle errors if there is any.
private Mono<ApiResponse> send(String accountId) {
accountIdBaggageField.updateValue(accountId);
...
0
votes
1
answer
9
views
Can you check object's state using sleuth?
I am trying to figure out if I can trace some objects fields using sleuth.
I am currently lost in Zipkin's and Sleuth's docs. Does anybody do this?
Can we add an object to span and view its details in ...
0
votes
0
answers
34
views
Sleuth TraceId IllegalArgumentException Exception
Encountering the below exception, when using Sleuth along with Spring Boot
The Stack trace is as follows :
ZipkinHttpSpanExtractor.joinTrace 51 : Exception occurred while trying to extract span from ...
0
votes
1
answer
149
views
Spring Cloud Sleuth with Spring Boot 3.0 and Tracer
I use spring sleuth in my project and after I updated spring-boot to version 3 I receive the following error:
Consider defining a bean of type 'org.springframework.cloud.sleuth.Tracer' in your ...
0
votes
1
answer
32
views
Is there a way to annotate an entire class with @NewSpan? - Spring Boot/Sleuth
Is there a way to annotate just the class and have all the methods in the class create new spans? Basically, I am trying to get sleuth/spring to create new spans for all calls in a given repository ...
0
votes
0
answers
36
views
Azure springboot distributed tracing correlationId and application map issue
I have created and configured two spring boot applications and with the help of application insight and cloud sleuth maven dependencies I have configured the logback . When I started the applications ...
1
vote
2
answers
173
views
Zipkin Sender Type and Kafka Topic Not Working After Updating Spring Boot 3
Hi I just update spring boot to version 3 and in my project we are configure zipkin configuration to send span to kafka with specific topic and it not working now
zipkin:
sender.type: kafka
kafka....
0
votes
1
answer
318
views
Spring Sleuth Do not generate Trace Id and span Id and not communicating with Zipkin server
I am trying to test spring cloud Zipkin.
When I make a request to this API, it is not not generating Tracking ID or Span ID.
Any idea what am I missing?
My Pom Dependencies
<modelVersion>4.0.0&...
0
votes
0
answers
31
views
Performance impact of Spring Sleuth
I read somewhere that Spring Sleuth has performance impact. Whatever I read over internet are old posts.
Does anyone know whether with new version of Spring Boot this issue is resolved or it is still ...
1
vote
1
answer
162
views
End to end tracing of a flow from API/Scheduler in a Spring Boot application
I am working with the Spring Boot application. I would like to add a TraceId to every request since it hits the application endpoint. In this context, I have added the dependency of spring-cloud-...
2
votes
2
answers
553
views
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 ...
1
vote
1
answer
72
views
Passing trace id from spring web app(using cloud sleuth) to non spring web application when hitting an api
I have two services A and B
A : it is written in spring boot
B: it is web app written in java with custom framework
I want to pass trace id generated by Spring cloud Sleuth when calling api from A to ...
0
votes
0
answers
38
views
Propagate traceId from Microservice and Kafka
I am using Spring Sleuth to generate logs that gets me traceId and spanId. I want to propagate these to Kafka topic, maybe in the header, and from there to another microservice that will consume from ...
0
votes
1
answer
152
views
logback logs not getting exported to datadog by opentelemetry-collector
I have created a spring-boot application with open-telemetry. I have used spring-cloud-sleuth for exporting the traces to a open-telemetry collectors which ultimately is exporting these traces to ...
0
votes
1
answer
1k
views
Sleuth is not working with Spring Boot 3.0.0 Version
I am using Sleuth and Zipkin for distributed tracing and facing an issue.
Issue: TraceID and SpanID is not getting printed in the microservice logs (and passed to Zipkin) with 3.0.0 version of Spring ...
0
votes
1
answer
32
views
TraceID for a request is not travelling between services
I am calling a microservice from a microservice and expecting the traceID (given by sleuth) initiated from base service should travel to the called services as implanted sleuth with zipkin.
Here is ...
0
votes
1
answer
61
views
How to set different logging levels in openelemetry-java?
We are planning to use open-telemetry as the logging tool in a new Spring-boot based micro-service. We have explored two ways to use otel, first is using manual instrumentation provided by Java and ...
0
votes
0
answers
25
views
Spring Sleuth, Zipkin and RabbitMQ: Traces stop at publish
I have one service A connected by RabbitMQ (direct exchange) to service B.
Both are instrumented by Sleuth. But the traces in Zipkin always stop in service A in RabbitMQs "publish". And I ...
0
votes
0
answers
72
views
Integrating spring cloud sleuth with camunda zeebe workers
Spring cloud sleuth doesn't support camunda zeebe(job) workers.
When worker methods run then traceId and spanId is not printed. Because the MDC context is empty for traceId, spanId keys.
A possible ...
0
votes
1
answer
81
views
logging tracking id in web filter
Blockquote
Running below WebFilter I can see that:
foo log does not have tracking id
bar log has tracking id
Why is that?
@Slf4j
@Component
@Order(Ordered.HIGHEST_PRECEDENCE + 2)
class MyFilter ...
1
vote
1
answer
98
views
Can we add parameters to the default traces generated by spring-cloud-sleuth?
I have integrated spring-cloud-sleuth with my Spring-boot application. I have also used open-telemetry as the log exporter. When I call a REST API in my application, I can see a span being generated. ...
1
vote
0
answers
142
views
Spring Cloud Sleuth - not propagating baggage for Spring Kafka
I have two microservices using Kafka as a broker for the communications between them and using Spring Cloud Sleuth for tracing and both of them have the same Spring boot version 2.7.2.
I needed to ...
0
votes
1
answer
34
views
Sleuth's trace ID in Logbook logs, on reactor netty - howto?
Some time ago, I was looking for a solution to propagate sleuth's trace IDs in zalando's logbook logs and found a solution - #1690, that works.
However, mentioned ReactorNettyHttpTracing is now ...
0
votes
0
answers
42
views
Spring Sleuth not working for SOAP outgoing calls (out-of-the-box)
I'm trying to set up the following Spring Sleuth configuration to propagate remote fields (HTTP request headers) across the projects out-of-the-box:
sleuth:
async:
enabled: true
baggage:
...
0
votes
1
answer
204
views
Zipkin server is not showing Microservices trace
I have a Microservice A calling another Microservice B with the following pom.xml and application.properties values:
pom.xml
<dependency>
<groupId>org.springframework.cloud</groupId&...
1
vote
1
answer
88
views
Spring cloud sleuth - tracing from FE to BE
I'm using springboot 2.7.5 and spring cloud sleuth 3.1.5
I have a distributed system composed by more than 30 microservices.
I have an Angular front-end deployed in a ngninx container and from this FE ...
0
votes
1
answer
123
views
Zipkin export flag is not getting printed in the Spring Boot Application logs
`I am implementing sleuth and zipkin locally and getting the following issue:
zipkin export flag of sleuth is not getting printed at all in the service logs. Only application name, trace id and span ...
0
votes
0
answers
52
views
fix different traceId with istio sidecar proxy and spring boot sleuth
Spring boot apps with Sleuth are deployed in pods with istio sidecar injected alongside.
istio virtual service ingresses traffic into the mesh and proxies the request to pods correctly.
Both logs are ...
0
votes
1
answer
38
views
Sleuth, Spring Integration and ThreadPoolExecutor: how to have one span per spawned thread?
There is an ExecutorChannel in my integration flow that will spawn one thread per message. The delegation chain looks like this:
ExecutorChannel (Spring Integration) -> BlockingExecutor (my own) -&...
1
vote
1
answer
247
views
sleuth traceId is not propagated using WebClient
I have this endpoint:
@GetMapping("processor")
public Flux<String> getSomeStringsAndProcessThem() {
log.info("processing some strings");
return WebClient.create().get(...
0
votes
1
answer
97
views
Add request header value in Sleuth log
I want to print request header with sleuth logs. Currently logs get printed in my spring boot microservice as given below-
2022-11-02 17:45:16.176 INFO [app-name,c9f95e8f223dca74,c9f95e8f223dca74] ...
0
votes
0
answers
59
views
Sleuth-Zipkin export flag is not coming as 'true' always
I am trying to use sleuth and Zipkin in a demo spring boot application.
I have added the required dependency in pom.xml and in order to export the details from sleuth to Zipkin, I have explicitly ...
0
votes
1
answer
23
views
Ignore spans generated by Spring PubSub
I'm using Spring Sleuth starter for a Spring Boot application for tracing calls from external sources. At the same time, the application has a dependency on Spring GCP Starter PubSub for handling ...
0
votes
1
answer
189
views
Spring boot 2.6 incompatible with Cloud Sleuth 3.1.4
I'm using Spring Boot 2.6 and Spring Cloud Sleuth 3.1.4
Whenever I run the app I'm getting this:
Your project setup is incompatible with our requirements due to following reasons:
- Spring Boot [2.6....
1
vote
1
answer
242
views
Spring Cloud Sleuth: tracer.getCurrentSpan() is NULL
Using Spring Cloud Sleuth version 3.1.4 and I want to insert the trace ID in the HTTP response headers. I created a bean of type GlobalFilter and trying to retrieve the trace ID string as follows
@...
0
votes
0
answers
42
views
byte array in heapdump on Subscriber in Spring cloud Sleuth Reactor ScopePassingSpanSubscriber
We are using AWS Fargate ECS Tasks for our spring webflux java 11 microservice.We are using a FROM gcr.io/distroless/java:11 java image. We have downloaded the heap dump of the application and can see ...
1
vote
0
answers
81
views
How to get sleuth http headers for reactor netty client request via breakpoint?
Given a client request of the form
return webClient.get()
.uri(customersUrl + id)
.retrieve()
.bodyToMono(Customer.class)
.block();
I would like to have a scriptable breakpoint ...
1
vote
0
answers
26
views
Sleuth support for Jersey
We are using Spring with Jersey on both client and server sides. How to use sleuth in such a configuration?
org.springframework.cloud:spring-cloud-starter-sleuth does not support jersey by default. I ...
0
votes
0
answers
32
views
TraceId using SNS and SQS
Good evening!
I receive an SNS inside an SQS Listner, and then I publish another SNS. Inside the SNS that I receive has a TraceId, how can I propagate this trace Id in the SNS that I send?
I thought ...
0
votes
1
answer
31
views
Force sleuth to ignore incoming tracing headers
Our system comprises of microservices that can accept requests from external sources but also can call our other internal microservices and some external microservices. Let's say they all communicate ...
0
votes
0
answers
187
views
Add Sleuth traceId and SpanId with EventListener for ApplicationReadyEvent methods
I'm using Sleuth for my Spring Application to get the traceId and spanId for several logs. The problem I have, is that I want to have traceId and spanId for logs inside methods that are annotated with ...
0
votes
0
answers
102
views
parentSpanId not propagated in spring boot 2.6.x and spring cloud 2021.0.4
I have upgraded my project to spring boot 2.6.11 and spring cloud 2021.0.4. After that, the parentId disappeared from the log.
I am using logback to logging purpose. So there is a way to display it?
I ...
1
vote
0
answers
259
views
Set custom traceId in spring sleuth
I have an angular application using a tracing library to trace each operation (user bouton click).
This application after SPA is loaded sends a list of traces in the request body to the backend ...
0
votes
1
answer
231
views
Spring Cloud Sleuth Parent-Span-Id is null and not propogating
I am using spring-cloud-sleuth I can see the traceId and spanId in the logs, but parentTraceId is always null, not seeing it in the MDC. What can be the reason?