pub struct ClientStatisticsAggregator { /* private fields */ }Expand description
Aggregator for client statistics.
Client statistics are aggregated by a number of fields that generate correspond to a specific span: service, name, and operation. Additional fields are used to further group the statistics, such as response codes and tags. This is referred to as the “aggregation key”.
Implementations§
Source§impl ClientStatisticsAggregator
impl ClientStatisticsAggregator
Sourcepub fn merge_payload(
&mut self,
payload: &StatsPayload,
) -> Result<(), GenericError>
pub fn merge_payload( &mut self, payload: &StatsPayload, ) -> Result<(), GenericError>
Merges the given payload into the aggregator.
Sourcepub fn groups(&self) -> &FastHashMap<AggregationKey, BucketedClientStatistics>
pub fn groups(&self) -> &FastHashMap<AggregationKey, BucketedClientStatistics>
Returns a reference to the aggregated statistics groups.
Groups are split by “aggregation key”, which is a combination of select fields in each client stats payload, roughly corresponding to a specific span: name, operation, kind, tags, and so on.
Trait Implementations§
Source§impl Clone for ClientStatisticsAggregator
impl Clone for ClientStatisticsAggregator
Source§fn clone(&self) -> ClientStatisticsAggregator
fn clone(&self) -> ClientStatisticsAggregator
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 moreSource§impl Debug for ClientStatisticsAggregator
impl Debug for ClientStatisticsAggregator
Source§impl Default for ClientStatisticsAggregator
impl Default for ClientStatisticsAggregator
Source§fn default() -> ClientStatisticsAggregator
fn default() -> ClientStatisticsAggregator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientStatisticsAggregator
impl<'de> Deserialize<'de> for ClientStatisticsAggregator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientStatisticsAggregator
impl RefUnwindSafe for ClientStatisticsAggregator
impl Send for ClientStatisticsAggregator
impl Sync for ClientStatisticsAggregator
impl Unpin for ClientStatisticsAggregator
impl UnwindSafe for ClientStatisticsAggregator
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked wrapper. Read more