pub struct ExecutionLogRecord<R> { /* private fields */ }Expand description
Application log record whose execution IDs are resolved when it is emitted.
Buffering attributes permits replacing stale durable IDs without duplicate
keys; application attributes such as request_id keep their original value.
Trait Implementations§
Source§impl<R: Clone> Clone for ExecutionLogRecord<R>
impl<R: Clone> Clone for ExecutionLogRecord<R>
Source§fn clone(&self) -> ExecutionLogRecord<R>
fn clone(&self) -> ExecutionLogRecord<R>
Returns a copy 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<R: Debug> Debug for ExecutionLogRecord<R>
impl<R: Debug> Debug for ExecutionLogRecord<R>
Source§impl<R: LogRecord> LogRecord for ExecutionLogRecord<R>
impl<R: LogRecord> LogRecord for ExecutionLogRecord<R>
Source§fn set_event_name(&mut self, name: &'static str)
fn set_event_name(&mut self, name: &'static str)
Sets the
event_name of a recordSource§fn set_target<T: Into<Cow<'static, str>>>(&mut self, target: T)
fn set_target<T: Into<Cow<'static, str>>>(&mut self, target: T)
Sets the
target of a record.
Currently, both opentelemetry-appender-tracing and opentelemetry-appender-log create a single logger
with a scope that doesn’t accurately reflect the component emitting the logs.
Exporters MAY use this field to override the instrumentation_scope.name.Source§fn set_timestamp(&mut self, timestamp: SystemTime)
fn set_timestamp(&mut self, timestamp: SystemTime)
Sets the time when the event occurred measured by the origin clock, i.e. the time at the source.
Source§fn set_observed_timestamp(&mut self, timestamp: SystemTime)
fn set_observed_timestamp(&mut self, timestamp: SystemTime)
Sets the observed event timestamp.
Source§fn set_severity_text(&mut self, text: &'static str)
fn set_severity_text(&mut self, text: &'static str)
Sets severity as text.
Source§fn set_severity_number(&mut self, number: Severity)
fn set_severity_number(&mut self, number: Severity)
Sets severity as a numeric value.
Source§fn add_attributes<I, K, V>(&mut self, attributes: I)
fn add_attributes<I, K, V>(&mut self, attributes: I)
Adds multiple attributes.
Source§fn add_attribute<K: Into<Key>, V: Into<AnyValue>>(&mut self, key: K, value: V)
fn add_attribute<K: Into<Key>, V: Into<AnyValue>>(&mut self, key: K, value: V)
Adds a single attribute.
Source§fn set_trace_context(
&mut self,
trace_id: TraceId,
span_id: SpanId,
flags: Option<TraceFlags>,
)
fn set_trace_context( &mut self, trace_id: TraceId, span_id: SpanId, flags: Option<TraceFlags>, )
Sets the trace context of the log.
Auto Trait Implementations§
impl<R> Freeze for ExecutionLogRecord<R>where
R: Freeze,
impl<R> RefUnwindSafe for ExecutionLogRecord<R>where
R: RefUnwindSafe,
impl<R> Send for ExecutionLogRecord<R>where
R: Send,
impl<R> Sync for ExecutionLogRecord<R>where
R: Sync,
impl<R> Unpin for ExecutionLogRecord<R>where
R: Unpin,
impl<R> UnwindSafe for ExecutionLogRecord<R>where
R: UnwindSafe,
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