mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add txpool metrics (#584)
* feat(metrics): `Metrics` derive macro * rename metrics to metrics-derive * use fully qualified fmt path * metric vec with capacity * favor metrics over simple scope attr, simplify code * pull metric description from doc comment * rm debug log * add more docs and sample usage * link to metrics macros * add tests for metrics derive macro * clippy * Fix doc of headers_unexpected_errors field of HeaderMetrics * Add tx pool metrics struct and metrics updates in code * Format file * Update metrics doc * Add some comments * Format file * Refactor metrics describers for consistency * Format files * Fix broken import * Apply metrics macro to TxPoolMetrics * Remove unused imports * Remove unused commented code * Remove files Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1c3d704244
commit
c2b19cecef
@ -64,6 +64,11 @@ How the metrics are exposed to the end-user is determined by the CLI.
|
||||
- `stages.headers.unexpected_errors`: Number of unexpected errors while requesting headers
|
||||
- `stages.headers.request_time`: Elapsed time of successful header requests
|
||||
|
||||
#### Transaction Pool
|
||||
- `transaction_pool.inserted_transactions`: Number of transactions inserted in the pool
|
||||
- `transaction_pool.invalid_transactions`: Number of invalid transactions
|
||||
- `transaction_pool.removed_transactions`: Number of removed transactions from the pool
|
||||
|
||||
[metrics]: https://docs.rs/metrics
|
||||
[metrics.Key]: https://docs.rs/metrics/latest/metrics/struct.Key.html
|
||||
[metrics.KeyName]: https://docs.rs/metrics/latest/metrics/struct.KeyName.html
|
||||
|
||||
Reference in New Issue
Block a user