pub struct RequestLog<'a> {Show 17 fields
pub timestamp_ms: u64,
pub service: &'a str,
pub method: &'a str,
pub path: &'a str,
pub status_code: u16,
pub duration_ms: u64,
pub ttfb_ms: Option<u64>,
pub config_name: &'a str,
pub provider_id: Option<String>,
pub upstream_base_url: &'a str,
pub session_id: Option<String>,
pub cwd: Option<String>,
pub reasoning_effort: Option<String>,
pub usage: Option<UsageMetrics>,
pub http_debug: Option<HttpDebugLog>,
pub http_debug_ref: Option<HttpDebugRef>,
pub retry: Option<RetryInfo>,
}Fields§
§timestamp_ms: u64§service: &'a str§method: &'a str§path: &'a str§status_code: u16§duration_ms: u64§ttfb_ms: Option<u64>Time to first byte / first chunk from the upstream (ms).
- For streaming responses: measured to the first response body chunk.
- For non-streaming responses: measured to response headers.
config_name: &'a str§provider_id: Option<String>§upstream_base_url: &'a str§session_id: Option<String>§cwd: Option<String>§reasoning_effort: Option<String>§usage: Option<UsageMetrics>§http_debug: Option<HttpDebugLog>§http_debug_ref: Option<HttpDebugRef>§retry: Option<RetryInfo>Trait Implementations§
Source§impl<'a> Debug for RequestLog<'a>
impl<'a> Debug for RequestLog<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestLog<'a>
impl<'a> RefUnwindSafe for RequestLog<'a>
impl<'a> Send for RequestLog<'a>
impl<'a> Sync for RequestLog<'a>
impl<'a> Unpin for RequestLog<'a>
impl<'a> UnwindSafe for RequestLog<'a>
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