pub type Timings = TimingsView<SpanGroup>;Expand description
Aliased Type§
pub struct Timings(pub BTreeMap<SpanGroup, Histogram<u64>>);Tuple Fields§
§0: BTreeMap<SpanGroup, Histogram<u64>>Implementations§
Source§impl Timings
impl Timings
Sourcepub fn aggregator_is_consistent<G>(&self, f: impl Fn(&SpanGroup) -> G) -> boolwhere
G: Ord,
pub fn aggregator_is_consistent<G>(&self, f: impl Fn(&SpanGroup) -> G) -> boolwhere
G: Ord,
Checks whether an aggregation function f used in Self::aggregate is consistent according to the following
definition:
- the values resulting from applying
fto span groups are called aggregate keys - the sets of span groups corresponding to each aggregate key are called aggregates.
- an aggregation function is consistent if and only if, for each aggregate, all the span groups in the aggregate have the same callsite.