pub struct LogRecord {
pub time_unix_nanos: u64,
pub trace_id: String,
pub span_id: String,
pub severity_text: &'static str,
pub severity_number: u8,
pub body: String,
pub attributes: BTreeMap<String, TraceAttr>,
}Expand description
A WARN log record (3.6.3): a fixed template body over enum values and the span’s redacted attributes, correlated to its span.
Fields§
§time_unix_nanos: u64§trace_id: String32 lowercase hex digits.
span_id: String16 lowercase hex digits.
severity_text: &'static str§severity_number: u8OpenTelemetry’s WARN severity number.
body: String§attributes: BTreeMap<String, TraceAttr>Trait Implementations§
impl StructuralPartialEq for LogRecord
Auto Trait Implementations§
impl Freeze for LogRecord
impl RefUnwindSafe for LogRecord
impl Send for LogRecord
impl Sync for LogRecord
impl Unpin for LogRecord
impl UnsafeUnpin for LogRecord
impl UnwindSafe for LogRecord
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