pub struct Entry {
pub module: Module,
pub level: Level,
pub timestamp_ms: i64,
pub message: String,
}Expand description
A single structured log event emitted by the server.
Entry is the wire format for all telemetry in the system. It is serialized using
bincode before being written to disk or broadcast over the Unix Datagram Socket.
The layout is intentionally compact: Module and Level are stored as small integer
enums, keeping each entry small for high-throughput workloads.
Entries are constructed by the logging macros (info!, error!, etc.) and by the
error telemetry middleware in api/middleware/log.rs. They should not typically be
constructed manually.
Fields§
§module: ModuleThe subsystem that generated this log entry.
level: LevelThe severity level of this log entry.
timestamp_ms: i64The Unix epoch timestamp in milliseconds at which this entry was created.
The logging service uses this value (not the wall clock) to determine which daily log file to write the entry into, preventing incorrect file rotation when entries are processed slightly after midnight due to channel queue lag.
message: StringThe human-readable log message.
For error telemetry entries produced by IntoResponse, this is the result of
calling .to_string() on the error, which uses the Display format defined
by thiserror.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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