lambda_ethereum_consensus icon indicating copy to clipboard operation
lambda_ethereum_consensus copied to clipboard

Delay DB size metric until `Db` is started

Open MegaRedHand opened this issue 9 months ago • 0 comments

We have a race condition. If this measurement is called before Db is started, the measurement fails with the message:

Error when calling MFA defined by measurement: 'Elixir.LambdaEthereumConsensus.Telemetry' db_size []
Class=exit
Reason={noproc,{'Elixir.GenServer',call,
                                   ['Elixir.LambdaEthereumConsensus.Store.Db',
                                    get_ref,5000]}}

MegaRedHand avatar May 21 '24 15:05 MegaRedHand