Struct sentry_core::Span
source · [−]pub struct Span { /* private fields */ }
Expand description
A running Performance Monitoring Span.
The span needs to be explicitly finished via Span::finish
, otherwise it
will not be sent to Sentry.
Implementations
Set some extra information to be sent with this Transaction.
Get the status of the Span.
Set the status of the Span.
pub fn iter_headers(&self) -> TraceHeadersIterⓘNotable traits for TraceHeadersIterimpl Iterator for TraceHeadersIter type Item = (&'static str, String);
pub fn iter_headers(&self) -> TraceHeadersIterⓘNotable traits for TraceHeadersIterimpl Iterator for TraceHeadersIter type Item = (&'static str, String);
Notable traits for TraceHeadersIter
impl Iterator for TraceHeadersIter type Item = (&'static str, String);
Returns the headers needed for distributed tracing.
Finishes the Span.
This will record the end timestamp and add the span to the transaction in which it was started.
Starts a new child Span with the given op
and description
.
The span must be explicitly finished via Span::finish
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Span
impl UnwindSafe for Span
Blanket Implementations
Mutably borrows from an owned value. Read more