pub mod metric_names {
pub const HTTP_SERVER_REQUESTS_TOTAL: &str = "http_server_requests_total";
pub const HTTP_SERVER_REQUEST_DURATION_SECONDS: &str = "http_server_request_duration_seconds";
pub const HTTP_SERVER_ERRORS_TOTAL: &str = "http_server_errors_total";
pub const RATE_LIMIT_DECISIONS_TOTAL: &str = "rate_limit_decisions_total";
pub const IDEMPOTENCY_REQUESTS_TOTAL: &str = "idempotency_requests_total";
pub const WORKER_TICKS_TOTAL: &str = "worker_ticks_total";
pub const WORKER_TICK_DURATION_SECONDS: &str = "worker_tick_duration_seconds";
pub const WORKER_PROCESSED_TOTAL: &str = "worker_processed_total";
pub const WORKER_LEASE_DECISIONS_TOTAL: &str = "worker_lease_decisions_total";
pub const SERVICE_HEALTH: &str = "service_health";
}
pub mod metric_labels {
pub const METHOD: &str = "method";
pub const ROUTE: &str = "route";
pub const STATUS: &str = "status";
pub const ERROR: &str = "error";
pub const OUTCOME: &str = "outcome";
pub const WORKER: &str = "worker";
pub const COMPONENT: &str = "component";
}
pub mod metric_outcomes {
pub const SUCCESS: &str = "success";
pub const FAILURE: &str = "failure";
pub const ALLOWED: &str = "allowed";
pub const DENIED: &str = "denied";
pub const RESERVED: &str = "reserved";
pub const PROCESSING: &str = "processing";
pub const REPLAY: &str = "replay";
pub const CONFLICT: &str = "conflict";
pub const ACQUIRED: &str = "acquired";
pub const BUSY: &str = "busy";
pub const RENEWED: &str = "renewed";
pub const LOST: &str = "lost";
pub const RELEASED: &str = "released";
}
pub mod trace_fields {
pub const EVENT_NAME: &str = "event_name";
pub const EVENT_KIND: &str = "event_kind";
pub const REQUEST_ID: &str = "request_id";
pub const TRACE_ID: &str = "trace_id";
pub const SPAN_ID: &str = "span_id";
pub const ACTOR_ID: &str = "actor_id";
pub const SUBJECT_ID: &str = "subject_id";
pub const SUBJECT_KIND: &str = "subject_kind";
pub const USER_ID: &str = "user_id";
pub const CLIENT_ID: &str = "client_id";
pub const SOURCE_IP: &str = "source_ip";
pub const METHOD: &str = "method";
pub const ROUTE: &str = "route";
pub const PATH: &str = "path";
pub const OPERATION: &str = "operation";
pub const OUTCOME: &str = "outcome";
pub const REASON_CODE: &str = "reason_code";
pub const ERROR_KIND: &str = "error_kind";
pub const ERROR_CODE: &str = "error_code";
pub const WORKER: &str = "worker";
pub const JOB: &str = "job";
pub const RETRY_AFTER_MS: &str = "retry_after_ms";
pub const LATENCY_MS: &str = "latency_ms";
}
pub mod event_names {
pub const HTTP_REQUEST: &str = "http.request";
pub const WORKER_TICK: &str = "worker.tick";
pub const WORKER_BATCH: &str = "worker.batch";
pub const SECURITY_DECISION: &str = "security.decision";
pub const AUDIT_EVENT: &str = "audit.event";
}