use crate::{MetricDescriptor, MetricName, new_counter_md, subsystems};
use std::sync::LazyLock;
pub const OPERATION_LABEL: &str = "operation";
pub const OUTCOME_LABEL: &str = "outcome";
pub static TIER_REQUESTS_SUCCESS_MD: LazyLock<MetricDescriptor> = LazyLock::new(|| {
new_counter_md(
MetricName::TierRequestsSuccess,
"Remote tier requests the backend acknowledged, by operation",
&[OPERATION_LABEL],
subsystems::TIER,
)
});
pub static TIER_REQUESTS_FAILURE_MD: LazyLock<MetricDescriptor> = LazyLock::new(|| {
new_counter_md(
MetricName::TierRequestsFailure,
"Remote tier requests that did not complete, by operation and outcome",
&[OPERATION_LABEL, OUTCOME_LABEL],
subsystems::TIER,
)
});