Expand description
Per-attempt metrics collected by Database::instrumented_run.
The report is a list of AttemptMetrics, one per transaction attempt, in
order: a retried transaction keeps everything it did in its earlier
attempts. Operation counters come from the always-on
UsageSnapshot of the attempt, so
instrumentation only adds the timings, the outcome and the aggregates on
top of what the binding already counts.
Structs§
- Attempt
Metrics - Everything recorded about a single transaction attempt.
- Metric
Key - Unique key for a metric: name + labels
- Metrics
Report - The metrics of a whole
instrumented_run: the detail of every attempt plus the aggregates that only make sense for the run as a whole. - Transaction
Info - Transaction-level information that spans attempts
- Transaction
Metrics - Collects the metrics of a transaction, attempt after attempt.
Enums§
- Attempt
Outcome - How a transaction attempt ended.
- Conflict
Keys - The conflicting key ranges of a transaction attempt.
Type Aliases§
- Labels
- Label key-value pairs for metrics