erigon-pulse/eth
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
..
calltracer evm: no interface (#8376) 2023-10-05 12:23:08 +07:00
ethconfig --txpool.gossip.disable (#8800) 2023-11-23 12:00:41 +07:00
ethconsensusconfig rpcdaemon: must not create db - because doesn't know right parameters (#8445) 2023-10-12 14:11:46 +07:00
ethutils reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
filters Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
gasprice EthereumExecutionService in MockSentry (#8373) 2023-10-05 18:30:19 +02:00
integrity Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
protocols/eth Simplify RLP size calculations (#8506) 2023-10-18 09:28:11 +02:00
stagedsync metrics: separate usage of prometheus counter and gauge interfaces (#8793) 2023-11-24 16:15:12 +01:00
tracers eth/tracers: support traceCall with txIndex (#8736) 2023-11-16 16:30:15 +07:00
api_backend.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
api.go
backend.go added logging for slow RPC requests (#8818) 2023-11-28 16:11:39 +07:00
bloombits.go
discovery.go