You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like okhttp event listener's callback methods are called before the HTTP span's context becomes the current one for the dispatcher's thread. This causes that calls to Context.curent() within an event listener's method (all of them?) to not return the HTTP span's context.
The text was updated successfully, but these errors were encountered:
Thanks for the issue @LikeTheSalad. As we have discussed in the Slack, while some of the EventListener callbacks (for ex. dnsStart, dnsEnd, secureConnectStart, secureConnectEnd) are called before the actual HTTP request (and so HTTP span), some others are called after it. So at the time of those event callbacks are triggered, there is no active HTTP span's context, so Context.current() returns the outer span (active span just before the OkHTTP client call) or null.
Seems like okhttp event listener's callback methods are called before the HTTP span's context becomes the current one for the dispatcher's thread. This causes that calls to
Context.curent()
within an event listener's method (all of them?) to not return the HTTP span's context.The text was updated successfully, but these errors were encountered: