-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
teardown_sentry_test
clears global event processors
#2466
Comments
will defer this to @st0012, I don't have a strong opinion either way. |
Re your original comment in #2342:
That's never the goal. We don't expect users to call This is also why we provide the test helper to reset/clean states users may be testing between test runs, so they don't force-reset the values through I think the correct fix to this issue is to "restore" instead of "clear" global processors after each run. And I think we may use |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Issue Description
The test teardown method
teardown_sentry_test
clears the global event processorsSentry::Scope.global_event_processors
. Any application global event processors are wiped after one test.Reasoning:
This behavior was introduced in #2342.
Reproduction Steps
Expected Behavior
The list of global events processors
Sentry::Scope.global_event_processors
is retained.Actual Behavior
The list of global events processors
Sentry::Scope.global_event_processors
is cleared.Ruby Version
3.3.5
SDK Version
5.21.0
Integration and Its Version
Rails 7.1.4
Sentry Config
No response
The text was updated successfully, but these errors were encountered: