-
Notifications
You must be signed in to change notification settings - Fork 173
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
configureScope leaks when using FrankenPHP in worker mode #905
Comments
We didn't optimize the Symfony SDK for asynchronous runtimes like FrankenPHP just yet. |
@cleptric do you have any idea when this will be done? |
Can't give you an estimate on this right now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do you use Sentry?
Self-hosted / on-premises
SDK version
5.1.0
Steps to reproduce
Hi,
I've stumbled upon the some issues when running FrankenPHP in worker mode.(https://frankenphp.dev/docs/worker/).
First: The User PII is always the same:
send_default_pii: true
in sentry.yamlSecond: Once a
context
is set usingconfigureScope
, thecontext
stays in subsequent requests./test-1
via a controller), inside the controller addconfigureScope
and set some context, then trigger an exception/test-2
via a controller), inside the controller addconfigureScope
and also set some context but set a different key (don't send the same key as the previous controller). Then trigger an exception again.Expected result
The user PII should be refresh on each request and the entire
configureScope
should be reset properly by using theResetInterface
since it leaks when using FrankenPHP in worker mode (don't know if its intentional that it leaks).About the PII it seems to be caused by: (
...->getId()
is only null on the first request)User:
sentry-symfony/src/EventListener/LoginListener.php
Line 96 in 2f19c19
IP-address:
sentry-symfony/src/EventListener/RequestListener.php
Line 58 in 2f19c19
The question is if the problem lies here or that the entire scope should be purged on each request.
Actual result
The context set inside the
configureScope
is never reset and leaking into different requests until FrankenPHP is restarted. Also causing the User PII to be always the same.The text was updated successfully, but these errors were encountered: