export const metrics = {
  etherlink_relay_messages_detected_total: 0,
  etherlink_relay_submissions_success_total: 0,
  etherlink_relay_submissions_failed_total: 0,
  etherlink_relay_queue_depth: 0,
};
export function incrementDetected() { metrics.etherlink_relay_messages_detected_total++; }
export function incrementSuccess() { metrics.etherlink_relay_submissions_success_total++; }
export function incrementFailed() { metrics.etherlink_relay_submissions_failed_total++; }
export function setQueueDepth(n) { metrics.etherlink_relay_queue_depth = n; }
export function getMetrics() { return { ...metrics }; }
