pub struct CallStats {Show 13 fields
pub model: String,
pub operation: String,
pub endpoint: String,
pub http_status: u16,
pub retry_count: u32,
pub duration_ms: u128,
pub first_event_ms: Option<u128>,
pub emitted_any: bool,
pub client_request_id: String,
pub upstream_request_id: Option<String>,
pub error_class: Option<String>,
pub usage: Option<Value>,
pub signals: SignalsSnapshot,
}Expand description
Per-call statistics for observability and model selection.
Fields§
§model: String§operation: String§endpoint: String§http_status: u16§retry_count: u32§duration_ms: u128§first_event_ms: Option<u128>For streaming calls: time from request start to first emitted event (best-effort).
emitted_any: boolFor streaming calls: whether any event was emitted to the caller.
client_request_id: StringAlways present; generated by the runtime for linkage.
upstream_request_id: Option<String>Best-effort request identifier from provider/edge headers (if available).
error_class: Option<String>§usage: Option<Value>§signals: SignalsSnapshotSnapshot of runtime signals captured for this call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallStats
impl RefUnwindSafe for CallStats
impl Send for CallStats
impl Sync for CallStats
impl Unpin for CallStats
impl UnwindSafe for CallStats
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
Mutably borrows from an owned value. Read more