pub struct LogMetadata {
pub trace_id: Option<String>,
pub span_id: Option<String>,
pub span_name: Option<String>,
pub additional: HashMap<String, Value>,
}Expand description
Metadata for a log entry
Fields§
§trace_id: Option<String>Trace ID for distributed tracing
span_id: Option<String>Span ID for distributed tracing
span_name: Option<String>Span name for distributed tracing
additional: HashMap<String, Value>Additional metadata fields
Trait Implementations§
Source§impl Clone for LogMetadata
impl Clone for LogMetadata
Source§fn clone(&self) -> LogMetadata
fn clone(&self) -> LogMetadata
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 Debug for LogMetadata
impl Debug for LogMetadata
Source§impl Default for LogMetadata
impl Default for LogMetadata
Source§fn default() -> LogMetadata
fn default() -> LogMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogMetadata
impl<'de> Deserialize<'de> for LogMetadata
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 LogMetadata
impl RefUnwindSafe for LogMetadata
impl Send for LogMetadata
impl Sync for LogMetadata
impl Unpin for LogMetadata
impl UnwindSafe for LogMetadata
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