pub struct ClientStatisticsAggregator { /* private fields */ }Expand description
Aggregator for client statistics.
Client statistics are represented by generating an “aggregation key” for a given span, and then grouping statistics by that key. The aggregation key includes fields like service, span name, span operation, response code, and more. This is meant to group like spans together,
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.
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 (const: unstable) · 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 UnsafeUnpin 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_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more