Comments (1)
@netwolfuk If a *withTracing()
function is executed, it will call the wrapped runnable's run
method. The fact that your WebClient
is instantiated is proof of that.
Side note: WebClient
doesn't have a run()
method. So I'm not sure exactly what you're expecting to work that's not working. Therefore I may be misunderstanding your question. If you were able to create a minimal code example or unit test to show the issue that might make it easier.
What may be happening is you're not explicitly passing in the tracing state you want the withTracing()
to use, so it's picking up whatever's on the thread when the wrapper runnable is created (i.e. whatever the tracing state is when executorService.execute(...)
is called, NOT when the executor actually executes the runnable which may happen later on a different thread). So if the current thread's tracing state isn't correct when executorService.execute(withTracing(...))
is called, then there's no way for the WebClient
to pick it up.
Also note that Spring changed their WebClient
threading behavior in more recent versions, so WingtipsSpringWebfluxExchangeFilterFunction
can no longer pick up the tracing state automatically, even if you explicitly passed the tracing state to withTracing()
. In order for wingtips to receive the tracing state reliably you must use webClient.attribute(TracingState.class.getName(), tracingStateForWebClientCall)
. This issue is now described in this javadoc here. As far as I can tell there's no way around this - Spring changed their threading behavior. This may also be what's going on with your code.
Hopefully that helps? I'm going to close this issue, but if you're still not able to get stuff working then feel free to reopen.
from wingtips.
Related Issues (17)
- trace information missing in map or flatMap operation after a webclient call HOT 1
- Implement an interceptor for Apache's HttpAsyncClient
- ConcurrentModificationException in SpanParser
- wingtips-zipkin: NumberFormatException in WingtipsToZipkinSpanConverterDefaultImpl HOT 14
- Switch to hex-encoded IDs for full B3 compatibility with Zipkin HOT 1
- Add support for Zipkin's ERROR annotation HOT 8
- OpenTracing support
- Add annotations/tags/baggage support to Spans HOT 4
- Change RequestTracingFilter to return the trace ID as a X-Wingtips-RequestId header rather than X-B3-TraceId
- Allow full control over log output format
- Support optional 128-bit trace ID generation.
- Merge the servlet filter into one that works in both Servlet 2.x and 3.x evironments HOT 2
- Span should implement Closeable instead of AutoCloseable. HOT 2
- Any plans to update this to zipkin v2 api? HOT 6
- implement "b3 single" header format
- Complete zipkin compatibility HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wingtips.