New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track CoroutineContext in Invocation tag #3240
base: master
Are you sure you want to change the base?
Conversation
I'm not super eager about this since We'll also need a test to ensure this works correctly. |
Updated. I added a |
Right now the Kotlin dependency is optional, and this interacts poorly with that. Unfortunately we don't have a good test setup which covers this case. I still think is doable, but it probably mean we need to pass around things as |
I added a rule to exclude Kotlin dependencies from the classpath for test classes not named |
Has this issue been resolved somewhere else please ? I really need to use the coroutineContext in my Okhttp interceptor. Thanks (: |
This enables accessing the
CoroutineContext
where the method was called from an OkHttp interceptor.Use cases:
CoroutineContext
for logging/monitoringrunBlocking
fromInterceptor.intercept
while preserving elements from the callingCoroutineContext