Enum Metric
#[non_exhaustive]pub enum Metric {
Show 18 variants
ClaimLatency,
LeaseRenewal,
LeaseRenewalLatency,
ActiveTrialLeases,
FailoverOutcome,
OutboxLag,
RemoteConnections,
RemoteQueueTime,
RemoteRequestLatency,
RemotePageRestart,
RemoteReplayEviction,
SubprocessOutcome,
SnapshotTrials,
SnapshotStateEntries,
SnapshotPendingOutbox,
JournalBytesStaged,
JournalCanonicalSize,
JournalLockWait,
}Expand description
What a recorded measurement measures.
Closed on purpose. A metric name is a label dimension in every exporter
that will consume these events, so the set of possible names must be
knowable by reading this file — an open &str metric name is how a
time-series database acquires a million dead series. Adding a variant is a
deliberate, reviewable edit; #[non_exhaustive] keeps that edit
non-breaking for out-of-tree matchers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClaimLatency
How long a worker took to claim a trial it had reserved.
LeaseRenewal
One lease heartbeat renewal attempt.
LeaseRenewalLatency
Whole microseconds spent in one lifecycle lease renewal attempt.
ActiveTrialLeases
Process-local number of live trial contexts holding a lease.
FailoverOutcome
One fail-over adjudication of a stale lease.
OutboxLag
How far a durable outbox record is behind its terminal commit.
RemoteConnections
Connections a remote endpoint is currently serving.
RemoteQueueTime
How long a remote request waited before it was served.
RemoteRequestLatency
How long a remote request took end to end.
RemotePageRestart
One remote immutable page-session restart after expiry or eviction.
RemoteReplayEviction
One completed remote lifecycle replay entry evicted by a bound.
SubprocessOutcome
One subprocess trial’s execution result.
SnapshotTrials
Number of trials materialized by one hydrated study snapshot.
SnapshotStateEntries
Number of side-state entries materialized by one hydrated study snapshot.
SnapshotPendingOutbox
Number of pending finalizations materialized by one hydrated study snapshot.
JournalBytesStaged
Bytes in one successfully staged complete journal image.
JournalCanonicalSize
Bytes in the canonical journal after one successful publication.
JournalLockWait
Whole microseconds from start through the terminal result of one journal append-lock acquisition call, including retries.
Implementations§
§impl Metric
impl Metric
pub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
The stable wire name of this metric.
Stable in the same sense as METRICS_TARGET: exporters and
dashboards key on these strings, so a change here is a breaking change
to somebody’s alert, not a rename.