Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vm_executor): Add new histogram metric for gas per tx in vm_exec…
…utor (#3215) ## What ❔ - Adds a new histogram metric <uint type> representing total gas used per tx - Adds a new histogram metric <uint type> representing the gas limit per failed tx ## Why ❔ - The existing metric is a histogram of rates. That's a little difficult to extract useful throughput numbers out of with the notable exception of efficiency. - Exporting this metric to let the consumer do their own: rate/anomoly calculation on gas/tx, ratio of gas burn for failed tx, etc. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`.
- Loading branch information