erigon-pulse/cmd
Dmytro a63b89334b
added logging for slow RPC requests (#8818)
Changed distribution of httpcfg.HttpCfg to be pointer.
Added new flags:
rpc.slow.log - which is false by default, this flag need to enable
logging slow RPC requests
rpc.slow.log.threshold - which is 100 by default, this flag specify slow
threshold in milliseconds
Updated rpc handler to log slow requests:
- added map[request id] {method, timestamp}
- put every request details to map above
- delete request details from map above
- added time interval check for elements in map and if time difference
is more than given threshold print request id and the method
- app will print slow requests in next cases:
1. As soon as request take more than given threshold
2. Every 20 seconds if request still in process
3. After request finished and it took more than give threshold

---------

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2023-11-28 16:11:39 +07:00
..
abigen
bootnode Discovery zero refresh timer (#8661) 2023-11-07 08:48:58 +00:00
capcli
caplin --txpool.gossip.disable (#8800) 2023-11-23 12:00:41 +07:00
caplin-regression --txpool.gossip.disable (#8800) 2023-11-23 12:00:41 +07:00
devnet devnet: prevent tx-leak on panic (#8803) 2023-11-25 09:12:55 +07:00
downloader add command "downloader torrent_cat" (#8824) 2023-11-27 08:49:19 +07:00
erigon metrics: separate usage of prometheus counter and gauge interfaces (#8793) 2023-11-24 16:15:12 +01:00
erigoncustom
evm
hack
integration integration run_migrations: open in non-accede exclusive mode - to create new tables (#8821) 2023-11-25 09:12:44 +07:00
observer
p2psim
pics
prometheus
release
rlpdump
rpcdaemon added logging for slow RPC requests (#8818) 2023-11-28 16:11:39 +07:00
rpctest --txpool.gossip.disable (#8800) 2023-11-23 12:00:41 +07:00
sentinel working debug/state/ for early states (#8767) 2023-11-18 03:08:19 +01:00
sentry
silkworm_api
state
tooling
txpool --txpool.gossip.disable (#8800) 2023-11-23 12:00:41 +07:00
utils added logging for slow RPC requests (#8818) 2023-11-28 16:11:39 +07:00
verkle Adds flags to enable/disable backfilling and enable full historical beacon node (#8813) 2023-11-22 13:24:35 +01:00