All Questions
Tagged with spring-cloud-gateway spring-cloud-sleuth
15
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 -> ...
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 ...
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 --> ...
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
@...
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:
...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...