sentry_slog

Function exception_from_record

Source
pub fn exception_from_record(
    record: &Record<'_>,
    values: &OwnedKVList,
) -> Event<'static>
Expand description

Creates an exception Event from the Record.

ยงExamples

let args = format_args!("");
let record = slog::record!(slog::Level::Error, "", &args, slog::b!());
let kv = slog::o!().into();
let event = sentry_slog::exception_from_record(&record, &kv);