Module metrics

Source
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§

AttemptMetrics
Everything recorded about a single transaction attempt.
MetricKey
Unique key for a metric: name + labels
MetricsReport
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.
TransactionInfo
Transaction-level information that spans attempts
TransactionMetrics
Collects the metrics of a transaction, attempt after attempt.

Enums§

AttemptOutcome
How a transaction attempt ended.
ConflictKeys
The conflicting key ranges of a transaction attempt.

Type Aliases§

Labels
Label key-value pairs for metrics