Skip to main content

All Questions

1 vote
1 answer
818 views

Spring Cloud Sleuth to Micrometer Tracing Migration (SB 2.7 -> 3.1.x) - No Trace_ID (Otel)

totally new to the whole Observability ecosystem and I'm trying to migrate a given project from sleuth to Micrometer Tracing. Let's say that i'm currently using a simple approach of rest call -> ...
wikenah's user avatar
  • 11
0 votes
1 answer
2k views

Spring Boot 3.x with Micrometer Tracing problems for spring-cloud-gateway

We are trying to upgrade our spring-cloud-gateway from Spring Boot 2.7.18 with Sleuth and Brave to 3.1.5. with Micrometer Tracing and Brave. So far so good. In Spring Boot (Webflux) prior 3 we could ...
Sandra Markerud's user avatar
0 votes
1 answer
381 views

Spring cloud sleuth with spring cloud gateway

I'm using spring cloud sleuth with spring cloud gateway (webflux based) I would like to only "log" TraceId and SpanId without propagating in http request Given this scenario : client --> ...
obe6's user avatar
  • 1,821
1 vote
1 answer
2k 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 @...
GenZ Dev's user avatar
  • 230
0 votes
0 answers
177 views

How to use sleuth traceId to replace gateway logprefix

How to use sleuth traceId to replace gateway logprefix, if we can do this, then we can get traceId easliy with exchange.getLogPrefix() and gateway internal have the same traceId for logprefix EDIT: ...
Xing's user avatar
  • 1
3 votes
1 answer
2k views

Spring Sleuth trace IDs are gone in Spring Cloud Gateway

I've got a very simple spring cloud gateway application (nothing custom, directly download from start.spring.io, just select gateway and sleuth). To enable access logs, I have to set the system ...
Rad's user avatar
  • 4,692
1 vote
0 answers
326 views

Adding the TraceId from Spring Cloud Sleuth to API Gateway filters

I have an API Gateway and one microservice. When the microservice is called from the Api gateway, both of them are supposed to get the same TraceID but my microservice has a completely new TraceID and ...
Varshini's user avatar
0 votes
1 answer
485 views

Is it possible to send data (TraceID to be precise) from Spring Cloud API gateway to a microservice?

I have an api gateway and a microservice. I have incorporated Spring cloud sleuth in my project but I am getting the incorrect Trace IDs. For example, if the gateway calls a microservice, both of them ...
Varshini's user avatar
2 votes
1 answer
1k views

Integration of Spring Cloud Gateway With Spring Cloud Sleuth

I could not find any example which is integrating Spring cloud Sleuth with the Spring Cloud Gateway. Want a Sample Project doing the Integration successfully.
Simran Kaur's user avatar
2 votes
0 answers
1k views

Sleuth 3.0.1 + Spring Cloud Gateway = traceids do not correlate on request/response

Well I have a new setup with Sleuth 3.0.1 where by default spring.sleuth.reactor.instrumentation-type is set to manual Therefore I wrapped all my places where I need to trace with ...
domaru's user avatar
  • 368
0 votes
1 answer
2k views

How do I get the current Trace ID in a Spring Cloud Gateway GlobalFilter

Similar to Spring Cloud Sleuth- Get current traceId? but in the context of Spring Cloud Gateway GlobalFilter I tried to inject Tracing and get the currentTracingContext but it returns null when I get ...
Archimedes Trajano's user avatar
0 votes
1 answer
757 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
1 answer
670 views

Initial Traces created by Spring-Cloud-Gateway are all named "/", no matter the path

I've integrated sleuth into my application gateway and the services behind it. The traces in Stackdriver (GKE) look good but the root-span is always named "/". For example: The second span is also ...
Laures's user avatar
  • 5,469
2 votes
1 answer
960 views

Spring cloud sleuth ExtraFieldPropagation fail in Spring cloud Gateway Filter

We are having three modules Gateway using spring-cloud-gateway, Service1 and Service2. Gateway call service1 and service1 calls service2. Service1 and Service2 are using spring web flux Gateway have 3 ...
Mahesh Kurade's user avatar
7 votes
1 answer
9k views

How to configure spring-cloud-gateway to use sleuth to log request/response body

I am looking to develop a gateway server based on spring-cloud-gateway:2.0.2-RELEASE and would like to utilize sleuth for logging purposes. I have sleuth running since when I write to the log I see ...
brunch's user avatar
  • 623