pub struct HttpMetricsRecord {
pub url: String,
pub method: String,
pub status: u16,
pub duration_ms: f64,
pub request_bytes: u64,
pub response_bytes: u64,
pub streaming: bool,
}Expand description
Information about an HTTP request for metrics collection.
Fields§
§url: StringThe target URL
method: StringHTTP method (currently only POST is used for LLM calls)
status: u16Response status code
duration_ms: f64Request duration in milliseconds
request_bytes: u64Number of bytes sent (request body size)
response_bytes: u64Number of bytes received (response body size)
streaming: boolWhether this was a streaming request
Trait Implementations§
Source§impl Clone for HttpMetricsRecord
impl Clone for HttpMetricsRecord
Source§fn clone(&self) -> HttpMetricsRecord
fn clone(&self) -> HttpMetricsRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpMetricsRecord
impl RefUnwindSafe for HttpMetricsRecord
impl Send for HttpMetricsRecord
impl Sync for HttpMetricsRecord
impl Unpin for HttpMetricsRecord
impl UnsafeUnpin for HttpMetricsRecord
impl UnwindSafe for HttpMetricsRecord
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