pub enum SpanKind {
Internal,
Server,
Client,
Producer,
Consumer,
}Available on crate feature
tracing-layer only.Expand description
The role of a span in a trace, as OTLP’s SpanKind. Set it with
an otel.kind field ("server", "client", "producer",
"consumer" or "internal"); the default is internal.
Variants§
Internal
An operation inside the application.
Server
Handling a request from a remote client.
Client
A request to a remote service.
Producer
Sending a message to a broker.
Consumer
Receiving a message from a broker.
Trait Implementations§
impl Copy for SpanKind
impl Eq for SpanKind
impl StructuralPartialEq for SpanKind
Auto Trait Implementations§
impl Forget for SpanKind
impl Freeze for SpanKind
impl Move 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