-
-
Notifications
You must be signed in to change notification settings - Fork 213
on_crash receives an event without scope data #2102
Copy link
Copy link
Open
Labels
Bugsomething isn't working as it shouldsomething isn't working as it shouldErrorsissues relates to the error reporting productissues relates to the error reporting productNativeplatform labelplatform label
Description
Activity
Metadata
Metadata
Assignees
Labels
Bugsomething isn't working as it shouldsomething isn't working as it shouldErrorsissues relates to the error reporting productissues relates to the error reporting productNativeplatform labelplatform label
All backends invoke
on_crashbefore applying the current scope. In pseudo:Unlike
before_send, theon_crashcallback therefore cannot inspectcontexts,tags,user,release,environment, or any other scope data for filtering purposes.With minidump backends, the event contains only
event_id,timestamp,platform, andlevel:{"event_id":"bcb1c3eb-6bf6-497d-1880-e942cafe61e8","timestamp":"2026-09-17T07:10:47.960701Z","platform":"native","level":"fatal"}Since
on_crashreplacesbefore_sendfor crashes, it should probably receive the same scope-enriched event, consistent with the normalbefore_sendcontract.