pub struct LifecycleEvent { /* private fields */ }Expand description
A structured lifecycle event containing only reviewed, bounded fields.
Implementations§
Source§impl LifecycleEvent
impl LifecycleEvent
Sourcepub const fn schema_version(&self) -> u16
pub const fn schema_version(&self) -> u16
Returns the telemetry schema version carried by this event mapping.
Sourcepub const fn fault_phase(&self) -> Option<FaultPhase>
pub const fn fault_phase(&self) -> Option<FaultPhase>
Returns the fault phase for a retry, skip, or rollback event.
Sourcepub const fn retry_ordinal(&self) -> Option<RetryOrdinal>
pub const fn retry_ordinal(&self) -> Option<RetryOrdinal>
Returns the reserved retry ordinal for a retry event.
Sourcepub const fn backoff(&self) -> Option<Duration>
pub const fn backoff(&self) -> Option<Duration>
Returns the deterministic backoff duration for a backoff event.
Sourcepub const fn kind(&self) -> LifecycleEventKind
pub const fn kind(&self) -> LifecycleEventKind
Returns the stable event kind.
Sourcepub const fn correlation(&self) -> &ExecutionCorrelation
pub const fn correlation(&self) -> &ExecutionCorrelation
Borrows the complete execution correlation.
Sourcepub const fn failure(&self) -> Option<FailureSummary>
pub const fn failure(&self) -> Option<FailureSummary>
Returns the redacted failure summary, when present.
Sourcepub const fn chunk_sequence(&self) -> Option<ChunkCount>
pub const fn chunk_sequence(&self) -> Option<ChunkCount>
Returns the chunk-attempt sequence for chunk events.
Sourcepub fn span_fields(&self) -> Vec<DiagnosticField>
pub fn span_fields(&self) -> Vec<DiagnosticField>
Produces the reviewed fields suitable for a tracing span or event.
Sourcepub fn metric_labels(&self) -> Vec<MetricLabel>
pub fn metric_labels(&self) -> Vec<MetricLabel>
Produces a bounded metric label set.
Identifiers, names, parameters, contexts, records, and error text are intentionally absent.
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
Source§fn clone(&self) -> LifecycleEvent
fn clone(&self) -> LifecycleEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleEvent
impl Debug for LifecycleEvent
Source§impl Display for LifecycleEvent
impl Display for LifecycleEvent
impl Eq for LifecycleEvent
Source§impl PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Freeze for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more