pub struct LogRecord {
pub timestamp: Option<Datetime>,
pub observed_timestamp: Option<Datetime>,
pub severity_text: Option<String>,
pub severity_number: Option<u8>,
pub body: Option<Value>,
pub attributes: Option<Vec<KeyValue>>,
pub event_name: Option<String>,
pub resource: Option<Resource>,
pub instrumentation_scope: Option<InstrumentationScope>,
pub trace_id: Option<TraceId>,
pub span_id: Option<SpanId>,
pub trace_flags: Option<TraceFlags>,
}Expand description
Represents the recording of an event.
Fields§
§timestamp: Option<Datetime>Time when the event occurred.
observed_timestamp: Option<Datetime>Time when the event was observed.
severity_text: Option<String>The severity text(also known as log level).
severity_number: Option<u8>The numerical value of the severity ranging from 1-24.
body: Option<Value>The body of the log record.
attributes: Option<Vec<KeyValue>>Additional information about the specific event occurrence.
event_name: Option<String>Name that identifies the class / type of event.
resource: Option<Resource>Describes the source of the log.
instrumentation_scope: Option<InstrumentationScope>Describes the scope that emitted the log.
trace_id: Option<TraceId>Request trace id.
span_id: Option<SpanId>Request span id.
trace_flags: Option<TraceFlags>W3C trace flag.
Trait Implementations§
impl ComponentType for LogRecord
impl Lift for LogRecord
impl Lower 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more