#[non_exhaustive]pub enum TelemetrySpanKind {
JobExecution,
StepExecution,
ChunkAttempt,
ItemRead,
ItemProcess,
ItemWrite,
RepositoryCommit,
Retry,
Backoff,
}Expand description
One stable span in the telemetry schema version 1 hierarchy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JobExecution
The root span for one job execution attempt.
StepExecution
One step execution attempt below its job execution.
ChunkAttempt
One bounded chunk attempt below its step execution.
ItemRead
The read phase of a chunk attempt.
ItemProcess
The process phase of a chunk attempt.
ItemWrite
The write phase of a chunk attempt.
RepositoryCommit
The repository commit phase of a chunk attempt.
Retry
One retry attempt below its step execution.
Backoff
The bounded wait below one retry attempt.
Implementations§
Source§impl TelemetrySpanKind
impl TelemetrySpanKind
Sourcepub const fn parent(self) -> Option<Self>
pub const fn parent(self) -> Option<Self>
Returns the required direct parent in the stable hierarchy.
Sourcepub const fn component(self) -> EventComponent
pub const fn component(self) -> EventComponent
Returns the framework component represented by this span.
Sourcepub const fn safe_field_keys(self) -> &'static [&'static str]
pub const fn safe_field_keys(self) -> &'static [&'static str]
Returns the complete reviewed field-key set for this span.
Trait Implementations§
Source§impl Clone for TelemetrySpanKind
impl Clone for TelemetrySpanKind
Source§fn clone(&self) -> TelemetrySpanKind
fn clone(&self) -> TelemetrySpanKind
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 moreimpl Copy for TelemetrySpanKind
Source§impl Debug for TelemetrySpanKind
impl Debug for TelemetrySpanKind
Source§impl Display for TelemetrySpanKind
impl Display for TelemetrySpanKind
impl Eq for TelemetrySpanKind
Source§impl Hash for TelemetrySpanKind
impl Hash for TelemetrySpanKind
Source§impl Ord for TelemetrySpanKind
impl Ord for TelemetrySpanKind
Source§fn cmp(&self, other: &TelemetrySpanKind) -> Ordering
fn cmp(&self, other: &TelemetrySpanKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TelemetrySpanKind
impl PartialEq for TelemetrySpanKind
Source§impl PartialOrd for TelemetrySpanKind
impl PartialOrd for TelemetrySpanKind
impl StructuralPartialEq for TelemetrySpanKind
Auto Trait Implementations§
impl Freeze for TelemetrySpanKind
impl RefUnwindSafe for TelemetrySpanKind
impl Send for TelemetrySpanKind
impl Sync for TelemetrySpanKind
impl Unpin for TelemetrySpanKind
impl UnsafeUnpin for TelemetrySpanKind
impl UnwindSafe for TelemetrySpanKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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