chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
11
services/etherlink-relay/src/metrics.js
Normal file
11
services/etherlink-relay/src/metrics.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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 }; }
|
||||
Reference in New Issue
Block a user