#[non_exhaustive]pub struct ScalarFields<'a> {
pub kernel_id: &'a str,
pub tool_name: &'a str,
pub call_id: &'a str,
pub skill_id: &'a str,
pub model: &'a str,
pub response_id: &'a str,
pub previous_response_id: &'a str,
pub dataset: &'a str,
pub metric: &'a str,
pub verdict: &'a str,
}Expand description
Per-variant scalar correlation fields surfaced as direct tracing
attributes alongside the JSON event blob. See EventKind::scalar_fields.
Absent fields are represented as "" rather than Option<&str> because
tracing 0.1’s static-field model requires every field at the call site
to satisfy tracing::Value, which is not implemented for Option<T>.
Marked #[non_exhaustive] so future schema-additive releases can append
new scalar correlators without a breaking change. Build a value via
Default::default and field-update syntax (ScalarFields { tool_name, ..Default::default() }) rather than the full struct literal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kernel_id: &'a strcompose.* event kernel identifier.
tool_name: &'a strtool.* and compose.retry_attempt target/tool name.
call_id: &'a strtool.* stable correlation identifier.
skill_id: &'a strcompose.skill_resolved / compose.loop_iteration skill identifier.
model: &'a strprompt.* model identifier.
response_id: &'a strprompt.completed / response.* provider response identifier.
previous_response_id: &'a strprompt.completed / response.turn_* chain ancestor — populated when
the producer is on a stateful endpoint such as OpenAI’s Responses API
where the current turn was created with previous_response_id.
dataset: &'a streval.report dataset / qrels label.
metric: &'a streval.report metric name.
verdict: &'a streval.report regression-gate verdict.
Trait Implementations§
Source§impl<'a> Clone for ScalarFields<'a>
impl<'a> Clone for ScalarFields<'a>
Source§fn clone(&self) -> ScalarFields<'a>
fn clone(&self) -> ScalarFields<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for ScalarFields<'a>
impl<'a> Debug for ScalarFields<'a>
Source§impl<'a> Default for ScalarFields<'a>
impl<'a> Default for ScalarFields<'a>
Source§fn default() -> ScalarFields<'a>
fn default() -> ScalarFields<'a>
Source§impl<'a> PartialEq for ScalarFields<'a>
impl<'a> PartialEq for ScalarFields<'a>
Source§fn eq(&self, other: &ScalarFields<'a>) -> bool
fn eq(&self, other: &ScalarFields<'a>) -> bool
self and other values to be equal, and is used by ==.