Commit a26c484a authored by Maurelian's avatar Maurelian

fix(cmon): Use the correct 'layer' label

Node connection error events were being emitted with a lable named
'chainId', which was not defined on the metrics spec.
This was causing nodeConnectionFailures to be treated as unhandled
errors.
parent fdaa95b8
---
'@eth-optimism/chain-mon': patch
---
Fixes a bug in the wd-mon service where a node connection failure event was not handled correctly
......@@ -142,7 +142,7 @@ export class WithdrawalMonitor extends BaseServiceV2<Options, Metrics, State> {
section: 'getBlockNumber',
})
this.metrics.nodeConnectionFailures.inc({
chainId: this.state.messenger.l1ChainId,
layer: 'l1',
section: 'getBlockNumber',
})
await sleep(this.options.sleepTimeMs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment