Enum sentry_core::TransactionOrSpan
source · [−]pub enum TransactionOrSpan {
Transaction(Transaction),
Span(Span),
}
Expand description
A wrapper that groups a Transaction
and a Span
together.
Variants
Transaction(Transaction)
A Transaction
.
Span(Span)
A Span
.
Implementations
Set some extra information to be sent with this Transaction/Span.
Set the status of the Transaction/Span.
Set the status of the Transaction/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.
Starts a new child Span with the given op
and description
.
The span must be explicitly finished via Span::finish
, as it will
otherwise not be sent to Sentry.
Finishes the Transaction/Span.
This records the end timestamp and either sends the inner Transaction
directly to Sentry, or adds the Span
to its transaction.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TransactionOrSpan
impl Send for TransactionOrSpan
impl Sync for TransactionOrSpan
impl Unpin for TransactionOrSpan
impl UnwindSafe for TransactionOrSpan
Blanket Implementations
Mutably borrows from an owned value. Read more