Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/tracedecay-contracts/src/storage/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ pub enum TableGrowthUnavailableReasonV1 {
InvalidTableName,
/// The previous watermark is later than the current measurement.
ClockRegressed,
/// The store is larger than the `dbstat` walk can cover within its
/// deadline.
ExceedsMeasurementBudget,
}

impl TableGrowthUnavailableReasonV1 {
Expand All @@ -318,6 +321,7 @@ impl TableGrowthUnavailableReasonV1 {
Self::StorageOther => "storage_other",
Self::InvalidTableName => "invalid_table_name",
Self::ClockRegressed => "clock_regressed",
Self::ExceedsMeasurementBudget => "exceeds_measurement_budget",
}
}

Expand Down Expand Up @@ -348,6 +352,9 @@ impl TableGrowthUnavailableReasonV1 {
Self::ClockRegressed => {
"table payload growth is unmeasured: the clock moved behind the previous measurement"
}
Self::ExceedsMeasurementBudget => {
"table payload growth is unmeasured: the store is too large to walk within the measurement deadline"
}
}
}
}
Expand Down
Loading
Loading