Skip to content

Commit

Permalink
feat(metrics): add unit to metric name
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Jul 27, 2023
1 parent e3fffa9 commit f8ade93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/beacon-node/src/util/workerEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function wireEventsOnWorkerThread<EventData>(
) {
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);
}
});

Expand Down Expand Up @@ -77,7 +77,7 @@ export function wireEventsOnMainThread<EventData>(
) {
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);
}
});

Expand Down

0 comments on commit f8ade93

Please sign in to comment.