From f8ade933250263ed478a5e766d8ce0f06b4d65c3 Mon Sep 17 00:00:00 2001 From: matthewkeil Date: Wed, 26 Jul 2023 22:01:04 -0400 Subject: [PATCH] feat(metrics): add unit to metric name --- packages/beacon-node/src/util/workerEvents.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/src/util/workerEvents.ts b/packages/beacon-node/src/util/workerEvents.ts index 2ef208fed388..5cb4e7553f95 100644 --- a/packages/beacon-node/src/util/workerEvents.ts +++ b/packages/beacon-node/src/util/workerEvents.ts @@ -40,7 +40,7 @@ export function wireEventsOnWorkerThread( ) { events.emit(data.event, data.data); const [sec, nanoSec] = process.hrtime(data.posted); - metrics?.networkWorkerWireEventsOnWorkerThreadLatency.observe(sec + nanoSec / 1e9); + metrics?.networkWorkerWireEventsOnWorkerThreadLatencySec.observe(sec + nanoSec / 1e9); } }); @@ -77,7 +77,7 @@ export function wireEventsOnMainThread( ) { events.emit(data.event, data.data); const [sec, nanoSec] = process.hrtime(data.posted); - metrics?.networkWorkerWireEventsOnMainThreadLatency.observe(sec + nanoSec / 1e9); + metrics?.networkWorkerWireEventsOnMainThreadLatencySec.observe(sec + nanoSec / 1e9); } });