pub enum SpanV2Kind {
Internal,
Server,
Client,
Producer,
Consumer,
}
Expand description
The kind of a V2 span.
This corresponds to OTEL’s kind enum, plus a catchall variant for forward compatibility.
Variants§
Internal
An operation internal to an application.
Server
Server-side processing requested by a client.
Client
A request from a client to a server.
Producer
Scheduling of an operation.
Consumer
Processing of a scheduled operation.
Implementations§
Trait Implementations§
Source§impl Clone for SpanV2Kind
impl Clone for SpanV2Kind
Source§fn clone(&self) -> SpanV2Kind
fn clone(&self) -> SpanV2Kind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpanV2Kind
impl Debug for SpanV2Kind
Source§impl Default for SpanV2Kind
impl Default for SpanV2Kind
Source§impl Display for SpanV2Kind
impl Display for SpanV2Kind
Source§impl Empty for SpanV2Kind
impl Empty for SpanV2Kind
Source§impl FromStr for SpanV2Kind
impl FromStr for SpanV2Kind
Source§impl FromValue for SpanV2Kind
impl FromValue for SpanV2Kind
Source§fn from_value(Annotated: Annotated<Value>) -> Annotated<Self>where
Self: Sized,
fn from_value(Annotated: Annotated<Value>) -> Annotated<Self>where
Self: Sized,
Creates a meta structure from an annotated boxed value.
Source§impl IntoValue for SpanV2Kind
impl IntoValue for SpanV2Kind
Source§fn into_value(self) -> Valuewhere
Self: Sized,
fn into_value(self) -> Valuewhere
Self: Sized,
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
§fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
Self: Sized,
fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
Source§impl PartialEq for SpanV2Kind
impl PartialEq for SpanV2Kind
Source§impl ProcessValue for SpanV2Kind
impl ProcessValue for SpanV2Kind
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for SpanV2Kind
Auto Trait Implementations§
impl Freeze for SpanV2Kind
impl RefUnwindSafe for SpanV2Kind
impl Send for SpanV2Kind
impl Sync for SpanV2Kind
impl Unpin for SpanV2Kind
impl UnwindSafe for SpanV2Kind
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