question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Existing Span id not propagated to Spring OAuth server

See original GitHub issue

I have created three application

  1. Spring Cloud Gateway (GS)
  2. Spring Resource Server (RS)
  3. Spring Oauth Server (OS)

I do an api request to Resource server via Gateway server , the Span Id and Trace Id are generated and propagated to RS , since RS is a protected resource , it first validates the bearer token in the request with Oauth Server , here instead of passing the same span id ,a new span id is generated and because of this Zipkin UI displays two distinct request .

I am using Spring cloud Greenwich.Release

RS zipkin_cons zipkin_oauth

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rjain610commented, May 31, 2020

Hi , I know it has been a long time and due to some reasons i could not upload a sample. Last week i thought i give it a try with latest release Hoxton.SR4 still stuck with same issue .

I have uploaded the sample application Spring-Zipkin-Sleuth-Oauth-Sample

any help would be appreciated. Thanks.

0reactions
spring-projects-issuescommented, Aug 9, 2019

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Sleuth
The span context is the state that must get propagated to any child spans across process boundaries. Part of the Span Context is...
Read more >
Tracing a Reactive Kotlin App with Spring Cloud Sleuth
“Allows to create a new span around a public method. The new span will be either a child of an existing span if...
Read more >
add custom baggage to current span and accessed by log MDC
the problem is the logs doesn't contain my custom context-id, context-type, although is see it in the span context. what i'm missing ?...
Read more >
Distributed tracing with Spring Cloud Sleuth and Zipkin
Manage the propagation of the correlation ID to outbound service calls so that the correlation ID for a transaction is automatically added to...
Read more >
Distributed Tracing with Spring Cloud Sleuth And Zipkin
The span id “B” covers the time from when the client at server 1 sent out the request, then server 2 receiving it,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found