-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Global event processors do not clear on Sentry.init #2051
Comments
I can remove them on |
@sl0thentr0py Thanks for the tip about
Would you be able to say a little more here as to why? Thanks for the attention here, all the same. 🙂 |
It looks like you're calling That said, the current test helper doesn't cover global processors either, which is something we should improve. Do you think there's anything else we can add to the test helper so you can utilise it in your tests? |
Issue Description
Hello! In working recently with
sentry-ruby
, a colleague and I found that the recently added global event processors from #1974 don't seem to clear on invocation ofSentry.init
. This is a bit unexpected, considering the overall action ofSentry.init
to reset other options.If this is the intended behavior and simply could use a documentation note, then please feel free to close this issue report.
Reproduction Steps
Sentry.init
to get startedSentry.add_global_event_processor
Sentry.init
to reset stateSentry.add_global_event_processor
Sentry::Scope.global_event_processors.length
or similarFor example:
Gemfile
spec/sentry_ruby_spec.rb
Expected Behavior
Sentry::Scope.global_event_processors.length
shows one configured global event processor.Actual Behavior
Sentry::Scope.global_event_processors.length
shows two configured global event processors.Ruby Version
3.2.2
SDK Version
5.9.0
Integration and Its Version
Non-specific
Sentry Config
None needed. Works with
sentry-ruby
defaults.The text was updated successfully, but these errors were encountered: