foundationdb

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§

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

Enums§

Type Aliases§

  • Label key-value pairs for metrics