pub struct Probe {
pub n: AtomicU64,
pub ns: AtomicU64,
pub max_ns: AtomicU64,
pub over_10ms: AtomicU64,
pub over_100ms: AtomicU64,
}Expand description
Count, total, maximum and two tail buckets for one interval.
Not a histogram: the question these answer is “which of these three numbers is the other two”, and a mean plus a max plus how many samples were absurd settles that in four atomics. A real histogram would be the right shape for an SLO and the wrong shape for an afternoon.
Fields§
§n: AtomicU64§ns: AtomicU64§max_ns: AtomicU64§over_10ms: AtomicU64§over_100ms: AtomicU64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Probe
impl RefUnwindSafe for Probe
impl Send for Probe
impl Sync for Probe
impl Unpin for Probe
impl UnsafeUnpin for Probe
impl UnwindSafe for Probe
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].