erigon-pulse/node
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
..
nodecfg Re-enable non-EIP155 unprotected txns (#8400) 2023-10-08 08:18:14 +07:00
doc.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
endpoints.go Enable h2c for http handler. add https handler for http2 (#8610) 2023-10-31 04:14:20 -05:00
errors.go Downloader: step towards more complex datadir (#8286) 2023-10-04 11:01:02 +07:00
lifecycle.go
node_example_test.go Downloader: step towards more complex datadir (#8286) 2023-10-04 11:01:02 +07:00
node_test.go rpcdaemon: must not create db - because doesn't know right parameters (#8445) 2023-10-12 14:11:46 +07:00
node.go rpcdaemon: must not create db - because doesn't know right parameters (#8445) 2023-10-12 14:11:46 +07:00
rpcstack_test.go torrent: add --webseeds cli arg (#8176) 2023-09-12 12:18:47 +07:00
rpcstack.go added logging for slow RPC requests (#8818) 2023-11-28 16:11:39 +07:00
utils_test.go Remove unused code from Node struct (#6978) 2023-03-01 08:04:27 +00:00