pub enum SpanOutcome {
Ok,
Error,
Cancelled,
}Expand description
How an attempt ended. OTel status knows only Unset/Ok/Error, so Cancelled travels as
status = Unset plus the lk.outcome attribute — every span carries lk.outcome so rollups
never have to infer it (a user hanging up mid-connect is not a failure).
Variants§
Ok
It did what it set out to do (OTel status Ok).
Error
It failed; error.type says how (OTel status Error).
Cancelled
It was called off before it finished, which is not a failure (OTel status Unset).
Trait Implementations§
Source§impl Clone for SpanOutcome
impl Clone for SpanOutcome
impl Copy for SpanOutcome
Source§impl Debug for SpanOutcome
impl Debug for SpanOutcome
impl Eq for SpanOutcome
Source§impl PartialEq for SpanOutcome
impl PartialEq for SpanOutcome
impl StructuralPartialEq for SpanOutcome
Auto Trait Implementations§
impl Forget for SpanOutcome
impl Freeze for SpanOutcome
impl Move for SpanOutcome
impl RefUnwindSafe for SpanOutcome
impl Send for SpanOutcome
impl Sync for SpanOutcome
impl Unpin for SpanOutcome
impl UnsafeUnpin for SpanOutcome
impl UnwindSafe for SpanOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more