#[non_exhaustive]pub enum SpanKindHint {
Internal,
Producer,
Consumer,
Client,
Server,
}Expand description
Compile-time hint for the OpenTelemetry span kind of a step span.
Contract: this enum is a compile-time hint supplied by the DSL compiler
when a TracingProcessor step span is built; the consumer converts it to
opentelemetry::trace::SpanKind once at construction. The enum is
#[non_exhaustive]: variants added in the future must degrade to
SpanKindHint::Internal at the consumption site, never cause a compile
failure downstream.
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.
Internal
Internal span inside a route; the default for plain process steps.
Producer
Producer span for a step that sends a message to a destination.
Consumer
Consumer span for a step that consumes a message from a source.
Client
Client span for a synchronous outbound call.
Server
Server span for a synchronous inbound handler.
Trait Implementations§
Source§impl Clone for SpanKindHint
impl Clone for SpanKindHint
Source§fn clone(&self) -> SpanKindHint
fn clone(&self) -> SpanKindHint
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 SpanKindHint
Source§impl Debug for SpanKindHint
impl Debug for SpanKindHint
Source§impl Default for SpanKindHint
impl Default for SpanKindHint
Source§fn default() -> SpanKindHint
fn default() -> SpanKindHint
Returns the “default value” for a type. Read more
impl Eq for SpanKindHint
Source§impl PartialEq for SpanKindHint
impl PartialEq for SpanKindHint
impl StructuralPartialEq for SpanKindHint
Auto Trait Implementations§
impl Freeze for SpanKindHint
impl RefUnwindSafe for SpanKindHint
impl Send for SpanKindHint
impl Sync for SpanKindHint
impl Unpin for SpanKindHint
impl UnsafeUnpin for SpanKindHint
impl UnwindSafe for SpanKindHint
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