pub struct RequestEvent {
pub request_id: String,
pub route: String,
pub kind: Option<String>,
pub started_at_unix_ms: u64,
pub started_at_run_us: Option<u64>,
pub finished_at_unix_ms: u64,
pub finished_at_run_us: Option<u64>,
pub latency_us: u64,
pub outcome: String,
}Expand description
Per-request timing and status.
Duration fields are authoritative for elapsed-time analysis; Unix-ms timestamps are wall-clock anchors for correlation, readability, and coarse grouping, and may be coarse or move with system clock changes.
Fields§
§request_id: StringPer-run identity for one completed logical request/work item.
This ID must be unique among completed requests in one Run.
External trace/correlation IDs that can repeat across retries, fanout
branches, batch items, or attempts should be expanded with attempt,
span, branch, or item information before becoming a tailtriage
request_id. Users remain responsible for meaningful instrumentation
and request-boundary semantics.
route: StringRoute name, operation, or endpoint.
kind: Option<String>Semantic request kind.
started_at_unix_ms: u64Request start timestamp (milliseconds since epoch UTC).
started_at_run_us: Option<u64>Request start offset from run start, measured with a monotonic clock.
finished_at_unix_ms: u64Request completion timestamp (milliseconds since epoch UTC).
finished_at_run_us: Option<u64>Request completion offset from run start, measured with a monotonic clock.
latency_us: u64Total request latency in microseconds.
outcome: StringLogical outcome such as “ok”, “error”, or “timeout”.
Trait Implementations§
Source§impl Clone for RequestEvent
impl Clone for RequestEvent
Source§fn clone(&self) -> RequestEvent
fn clone(&self) -> RequestEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestEvent
impl Debug for RequestEvent
Source§impl<'de> Deserialize<'de> for RequestEvent
impl<'de> Deserialize<'de> for RequestEvent
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>,
impl Eq for RequestEvent
Source§impl PartialEq for RequestEvent
impl PartialEq for RequestEvent
Source§fn eq(&self, other: &RequestEvent) -> bool
fn eq(&self, other: &RequestEvent) -> bool
self and other values to be equal, and is used by ==.