sentry_tracing

Function event_from_event

Source
pub fn event_from_event<'context, S>(
    event: &Event<'_>,
    ctx: impl Into<Option<Context<'context, S>>>,
) -> Event<'static>
where S: Subscriber + for<'a> LookupSpan<'a>,
Expand description

Creates an Event from a given tracing_core::Event