-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Sentry scope is lost with async Spring controllers #1226
Comments
I guess this is a dup of #1107 could you confirm @dparrella ? |
It's similar but it's not exactly the same. That issue refers to a |
agreed, ideally, we'd make something generic enough to tackle both problems. |
Any updates on this issue? This is a major problem for us. |
For the coroutines implementation we added methods: |
If there's no 'framework' API we can hook to do the calls to But as @maciejwalkowiak suggested you could use that API at the right places to propagate state. Would that work for you @dparrella? |
Platform:
IDE:
Build system:
Android Gradle Plugin:
Sentry Android Gradle Plugin:
Proguard/R8:
Platform installed with:
The version of the SDK:
4.0.0
I have the following issue:
We have noticed that issues generated from async requests our spring controllers lose context. This means we don't see things like the request information. I think it also breaks tracing.
I tried using a
TaskDecorator
(we have one for copying MDC context) but there is no way to pass in a "copy" of the current scope to the Runnable we return. I think ideally we'd have aSentry.setScope()
or amerge()
method onScope
.Example TaskDecorator:
Example Async controller method:
Steps to reproduce:
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: