pub struct RunMetadata {Show 14 fields
pub run_id: String,
pub service_name: String,
pub service_version: Option<String>,
pub started_at_unix_ms: u64,
pub finished_at_unix_ms: u64,
pub finalized_at_unix_ms: Option<u64>,
pub mode: CaptureMode,
pub effective_core_config: Option<EffectiveCoreConfig>,
pub effective_tokio_sampler_config: Option<EffectiveTokioSamplerConfig>,
pub host: Option<String>,
pub pid: Option<u32>,
pub lifecycle_warnings: Vec<String>,
pub unfinished_requests: UnfinishedRequests,
pub run_end_reason: Option<RunEndReason>,
}Expand description
Top-level metadata for one capture run.
Fields§
§run_id: StringIdentifier for the run.
When not supplied by the caller, tailtriage-core generates a UUID-based
identifier.
service_name: StringService/application name.
service_version: Option<String>Optional service version.
started_at_unix_ms: u64Timestamp (milliseconds since epoch UTC) when collection started.
finished_at_unix_ms: u64Timestamp (milliseconds since epoch UTC) when collection ended.
During active capture, in-memory snapshots may still show the start-time
placeholder. shutdown() writes the finalized end timestamp to the
persisted artifact.
finalized_at_unix_ms: Option<u64>Finalization timestamp (milliseconds since epoch UTC) for persisted artifacts.
This is None for active in-memory snapshots and for older artifacts
written before this field existed.
mode: CaptureModeCapture mode, such as “light” or “investigation”.
effective_core_config: Option<EffectiveCoreConfig>Effective resolved core configuration after applying mode defaults and overrides.
This field may be None for older artifacts that predate effective config capture.
effective_tokio_sampler_config: Option<EffectiveTokioSamplerConfig>Effective resolved Tokio runtime sampler configuration for this run.
This field is set only when a Tokio sampler is configured and started.
It may be None for runs without Tokio sampling and for older artifacts.
host: Option<String>Hostname captured at run creation when available as valid UTF-8.
pid: Option<u32>Process identifier if available.
lifecycle_warnings: Vec<String>Lifecycle warnings generated during shutdown validation.
unfinished_requests: UnfinishedRequestsIncomplete request summary captured at shutdown.
run_end_reason: Option<RunEndReason>Why the run lifecycle ended.
This field may be None for older artifacts and for runs that do not
record an explicit end reason (including direct tailtriage-core runs today).
Trait Implementations§
Source§impl Clone for RunMetadata
impl Clone for RunMetadata
Source§fn clone(&self) -> RunMetadata
fn clone(&self) -> RunMetadata
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 RunMetadata
impl Debug for RunMetadata
Source§impl<'de> Deserialize<'de> for RunMetadata
impl<'de> Deserialize<'de> for RunMetadata
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 PartialEq for RunMetadata
impl PartialEq for RunMetadata
Source§fn eq(&self, other: &RunMetadata) -> bool
fn eq(&self, other: &RunMetadata) -> bool
self and other values to be equal, and is used by ==.