pub enum ScopeField {
TraceId(String),
SpanId(String),
ParentSpanId(String),
Label(&'static str, String),
}Expand description
A field declared on obs::scope! / obs::context!. Field types
match the envelope projection contract: trace ids land on the typed
envelope slots, labels go into env.labels. Spec 13 § 2.1.
Variants§
TraceId(String)
Pushes onto env.trace_id when missing.
SpanId(String)
Pushes onto env.span_id when missing.
ParentSpanId(String)
Pushes onto env.parent_span_id when missing.
Label(&'static str, String)
Pushes onto env.labels[name] when the key is absent.
Implementations§
Trait Implementations§
Source§impl Clone for ScopeField
impl Clone for ScopeField
Source§fn clone(&self) -> ScopeField
fn clone(&self) -> ScopeField
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 moreAuto Trait Implementations§
impl Freeze for ScopeField
impl RefUnwindSafe for ScopeField
impl Send for ScopeField
impl Sync for ScopeField
impl Unpin for ScopeField
impl UnsafeUnpin for ScopeField
impl UnwindSafe for ScopeField
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