panic_extractor

Function panic_extractor 

Source
pub fn panic_extractor(info: &PanicInfo<'_>) -> Option<Event<'static>>
๐Ÿ‘ŽDeprecated: The failure integration is deprecated and will be removed in the future.
Expand description

Extracts a Sentry Event from a PanicInfo.

Creates a new Sentry Event when the panic has a failure::Error payload. This is for use with the sentry-panic integration, and is enabled by default in sentry.

ยงExamples

let panic_integration =
    sentry_panic::PanicIntegration::new().add_extractor(sentry_failure::panic_extractor);