pub enum SpanKind {
Internal,
Client,
Server,
Producer,
Consumer,
}Expand description
The kind of a span in distributed tracing.
This enum represents the different types of spans that can be created in distributed tracing, including internal operations, client requests, server requests, message production, and message consumption.
Variants§
Internal
The default span kind, representing an internal operation within the library.
Client
The span represents a client request.
Server
The span represents a server request.
Producer
The span represents a message being produced. This is typically used for messaging systems where a message is sent to a queue or topic.
Consumer
The span represents a message being consumed. This is typically used for messaging systems where a message is received from a queue or topic.
Trait Implementations§
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 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