[][src]Function sentry_failure::panic_extractor

pub fn panic_extractor(info: &PanicInfo<'_>) -> Option<Event<'static>>
👎 Deprecated:

The failure integration is deprecated and will be removed in the future.

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);