1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! What a closing span hands to its operation.
/// One span's contribution to an operation.
///
/// This is the sole channel from a span to its operation's metrics. Both span scopes
/// produce it as they close — thread spans with a measured peak, process spans without one
/// — and `OperationMetrics::add_span` is its only consumer. An absent peak is therefore not
/// merely a missing figure: it makes the whole operation's peak unavailable, permanently
/// and across merges (`docs/implementation.md`, "Peak aggregation").
///
/// The byte and allocation figures are whole-span totals rather than per-iteration rates:
/// dividing is the operation's job, because it weights spans against each other
/// (`docs/implementation.md`, "Peak aggregation").
pub