pub enum SpanKind {
Internal = 1,
Server = 2,
Client = 3,
}Expand description
OTLP SpanKind. Numbering matches the OTLP spec (INTERNAL=1, SERVER=2,
CLIENT=3) so the numeric value can be cast directly with as i32 when
building OTLP JSON. PRODUCER/CONSUMER are intentionally not exposed —
nothing in this crate does message-queue instrumentation yet.
Variants§
Internal = 1
Internal work with no remote counterpart — DB query, cache lookup,
business logic. The default for span.
Server = 2
The span created by OtelLayer for an incoming HTTP request.
Client = 3
An outbound call to another service. The kind for client_span.
Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.