pub struct CoreLog {
pub target: String,
pub message: String,
pub timestamp: SystemTime,
pub level: Level,
pub fields: HashMap<String, Value>,
pub span_contexts: Vec<String>,
}Expand description
A log line (which ultimately came from a tracing event) exported from Core->Lang
Fields§
§target: StringThe module within core this message originated from
message: StringLog message
timestamp: SystemTimeTime log was generated (not when it was exported to lang)
level: LevelMessage level
fields: HashMap<String, Value>Arbitrary k/v pairs (span k/vs are collapsed with event k/vs here). We could change this
to include them in span_contexts instead, but there’s probably not much value for log
forwarding.
span_contexts: Vec<String>A list of the outermost to the innermost span names
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreLog
impl RefUnwindSafe for CoreLog
impl Send for CoreLog
impl Sync for CoreLog
impl Unpin for CoreLog
impl UnsafeUnpin for CoreLog
impl UnwindSafe for CoreLog
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request