pub struct CreateSpanEvent {
pub kind: SourceKind,
pub resource_key: ResourceKey,
pub parent_key: Option<SpanKey>,
pub name: String,
pub namespace: Option<String>,
pub function: Option<String>,
pub level: Level,
pub file_name: Option<String>,
pub file_line: Option<u32>,
pub file_column: Option<u32>,
pub instrumentation_attributes: BTreeMap<String, Value>,
pub attributes: BTreeMap<String, Value>,
}
Fields§
§kind: SourceKind
§resource_key: ResourceKey
§parent_key: Option<SpanKey>
§name: String
§namespace: Option<String>
§function: Option<String>
§level: Level
§file_name: Option<String>
§file_line: Option<u32>
§file_column: Option<u32>
§instrumentation_attributes: BTreeMap<String, Value>
§attributes: BTreeMap<String, Value>
Trait Implementations§
Source§impl Clone for CreateSpanEvent
impl Clone for CreateSpanEvent
Source§fn clone(&self) -> CreateSpanEvent
fn clone(&self) -> CreateSpanEvent
Returns a duplicate 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<'de> Deserialize<'de> for CreateSpanEvent
impl<'de> Deserialize<'de> for CreateSpanEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateSpanEvent
impl RefUnwindSafe for CreateSpanEvent
impl Send for CreateSpanEvent
impl Sync for CreateSpanEvent
impl Unpin for CreateSpanEvent
impl UnwindSafe for CreateSpanEvent
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