Closed ixti closed 5 months ago
Without using said helper, I can achieve desired goals:
event_cause = sentry_events.first.to_hash[:exception]&.values&.dig(0, 0, :type)
expect(event_cause).to eq("RuntimeError")
hey @ixti , you should return an Event
in your before_send
, the hash support is only for the previous async
mode and will be removed in the next major.
I know using the parameter filter is convenient this way but we should find another solution for this, you're not supposed to process it like that.
There is an EventScrubber
I need to implement for this use case but I haven't gotten around to it.
@sl0thentr0py Oh, got it. Glad I caught it before then :D Wasn't aware of this.
Issue Description
When using parameter filter in
before_send
, the result isHash
, butextract_sentry_exceptions
expects the instance of Event.Reproduction Steps
Configure Sentry
Sample app code:
Sample test code:
Expected Behavior
Specs should pass.
Actual Behavior
Spec fails, due to:
Ruby Version
3.3.0
SDK Version
5.16.1
Integration and Its Version
rails, sidekiq (SDK matching versions)
Sentry Config
No response