pub fn record_error(tier: &str, operation: &str, error_type: &str)
Record an error with category for alerting