#[repr(u8)]pub enum SpanKind {
Internal = 0,
Server = 1,
Client = 2,
Producer = 3,
Consumer = 4,
}Expand description
Span kind (OpenTelemetry semantic convention)
Indicates the role of this span in the distributed trace.
Variants§
Internal = 0
Internal operation (function call, syscall)
Server = 1
Server-side request handling (HTTP server, RPC server)
Client = 2
Client-side request (HTTP client, RPC client)
Producer = 3
Producer (message queue producer)
Consumer = 4
Consumer (message queue consumer)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanKind
impl<'de> Deserialize<'de> for SpanKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for SpanKind
impl Eq for SpanKind
impl StructuralPartialEq for SpanKind
Auto Trait Implementations§
impl Freeze for SpanKind
impl RefUnwindSafe for SpanKind
impl Send for SpanKind
impl Sync for SpanKind
impl Unpin for SpanKind
impl UnsafeUnpin for SpanKind
impl UnwindSafe for SpanKind
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