pub struct RequestStats {Show 13 fields
pub from_block: u64,
pub requested_end: u64,
pub next_block: u64,
pub requested_blocks: u64,
pub actual_blocks: u64,
pub projected_blocks: u64,
pub response_bytes: u64,
pub target_bytes: u64,
pub size_ratio: f64,
pub bytes_per_block: f64,
pub truncated: bool,
pub kind: RequestKind,
pub duration: Duration,
}Expand description
Metrics for a single completed HTTP request, reported via
StreamObserver::on_request.
Fields§
§from_block: u64First block of the request (inclusive).
requested_end: u64Requested exclusive end of the range.
next_block: u64Exclusive end actually covered by the response.
requested_blocks: u64requested_end - from_block.
actual_blocks: u64next_block - from_block (blocks actually covered).
projected_blocks: u64Block span the projector aimed for, before clamping to the hole.
response_bytes: u64HTTP response body size in bytes.
target_bytes: u64Configured response_bytes_target at the time of the request.
size_ratio: f64response_bytes / target_bytes.
bytes_per_block: f64Observed density, response_bytes / actual_blocks.
truncated: boolnext_block < requested_end — the server stopped early.
kind: RequestKindWhether this request extended the frontier or backfilled a gap.
duration: DurationWall-clock latency of the request (fetch + decode/map).
Trait Implementations§
Source§impl Clone for RequestStats
impl Clone for RequestStats
Source§fn clone(&self) -> RequestStats
fn clone(&self) -> RequestStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestStats
impl RefUnwindSafe for RequestStats
impl Send for RequestStats
impl Sync for RequestStats
impl Unpin for RequestStats
impl UnsafeUnpin for RequestStats
impl UnwindSafe for RequestStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more