pub const DEFAULT_METRICS_ENDPOINT: &str = "/metrics";
pub const DEFAULT_METRICS_NAMESPACE: &str = "hyperlane";
pub const PROMETHEUS_CONTENT_TYPE: &str = "text/plain; version=0.0.4; charset=utf-8";
pub const DEFAULT_LATENCY_BUCKETS: [f64; 12] = [
0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0,
];
pub(crate) const INT_STACK_BUF_LEN: usize = 24;
pub(crate) const LINEAR_SCAN_BUCKET_LIMIT: usize = 16;
pub(crate) const STATUS_CLASS_LABELS: [&str; 6] = ["1xx", "2xx", "3xx", "4xx", "5xx", "other"];
pub(crate) const ATTR_METRICS_STARTED_AT: &str = "hyperlane_plugin_metrics_started_at";
pub(crate) const CACHE_CONTROL_NO_STORE: &str = "no-store";
pub(crate) const PREFIX_BEARER: &str = "bearer ";
pub(crate) const PROM_HELP_PREFIX: &str = "# HELP ";
pub(crate) const PROM_TYPE_PREFIX: &str = "# TYPE ";
pub(crate) const PROM_TYPE_HISTOGRAM_NL: &str = " histogram\n";
pub(crate) const PROM_BUCKET_LE_OPEN: &str = "_bucket{le=\"";
pub(crate) const PROM_BUCKET_LE_CLOSE: &str = "\"} ";
pub(crate) const PROM_BUCKET_INF: &str = "_bucket{le=\"+Inf\"} ";
pub(crate) const PROM_SUM_SUFFIX: &str = "_sum ";
pub(crate) const PROM_COUNT_SUFFIX: &str = "_count ";
pub(crate) const HELP_HTTP_DURATION: &str = "HTTP request latency distribution in seconds.";