Skip to main content

without_panic_handling_frames

Function without_panic_handling_frames 

Source
fn without_panic_handling_frames(stacktrace: Stacktrace) -> Stacktrace
Expand description

Removes the frames that handle the panic: the standard library’s panic machinery and the panic hook that builds the event.

Sentry names an issue after its newest in-app frame, and the hook’s frames are in-app, so without this every panic would point at the hook instead of the code that panicked.