pub struct LogMessage {
pub build_id: Option<BuildId>,
pub dataflow_id: Option<DataflowId>,
pub node_id: Option<NodeId>,
pub daemon_id: Option<DaemonId>,
pub level: LogLevelOrStdout,
pub target: Option<String>,
pub module_path: Option<String>,
pub file: Option<String>,
pub line: Option<u32>,
pub message: String,
pub timestamp: DateTime<Utc>,
pub fields: Option<BTreeMap<String, String>>,
}Expand description
A single log record delivered to dora/logs subscribers.
One of these is produced for every captured log line — a tracing event
from a dora component or a line a node wrote to stdout/stderr — and carries
both the message and the routing/provenance context a log consumer needs to
attribute it (which dataflow, node, and daemon it came from).
Fields§
§build_id: Option<BuildId>The build this record belongs to, when it originated during a build.
dataflow_id: Option<DataflowId>The dataflow the emitting component was part of, if any.
node_id: Option<NodeId>The node that emitted the record, if it came from a node.
daemon_id: Option<DaemonId>The daemon that captured and forwarded the record.
level: LogLevelOrStdoutThe severity, or LogLevelOrStdout::Stdout for a captured stdout line.
target: Option<String>The tracing target (typically the emitting module path), when known.
module_path: Option<String>Source module path of the emitting code, when known.
file: Option<String>Source file of the emitting code, when known.
line: Option<u32>Line within file of the emitting code, when known.
message: StringThe log text itself.
timestamp: DateTime<Utc>When the record was produced.
fields: Option<BTreeMap<String, String>>Structured key/value fields attached to a tracing event, if any.
Trait Implementations§
Source§impl Clone for LogMessage
impl Clone for LogMessage
Source§impl Debug for LogMessage
impl Debug for LogMessage
Source§impl<'de> Deserialize<'de> for LogMessage
impl<'de> Deserialize<'de> for LogMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<LogMessageHelper> for LogMessage
impl From<LogMessageHelper> for LogMessage
Source§fn from(helper: LogMessageHelper) -> Self
fn from(helper: LogMessageHelper) -> Self
Source§impl PartialEq for LogMessage
impl PartialEq for LogMessage
Source§impl Serialize for LogMessage
impl Serialize for LogMessage
impl StructuralPartialEq for LogMessage
Auto Trait Implementations§
impl Freeze for LogMessage
impl RefUnwindSafe for LogMessage
impl Send for LogMessage
impl Sync for LogMessage
impl Unpin for LogMessage
impl UnsafeUnpin for LogMessage
impl UnwindSafe for LogMessage
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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