mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
a63b89334b
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> |
||
---|---|---|
.. | ||
rpccfg | ||
testdata | ||
allow_list_test.go | ||
allow_list.go | ||
client_example_test.go | ||
client_test.go | ||
client.go | ||
doc.go | ||
endpoints.go | ||
errors.go | ||
handler_test.go | ||
handler.go | ||
helpers.go | ||
http_test.go | ||
http.go | ||
inproc.go | ||
ipc.go | ||
json.go | ||
metrics.go | ||
server_test.go | ||
server.go | ||
service.go | ||
stdio.go | ||
subscription_test.go | ||
subscription.go | ||
testservice_test.go | ||
types_test.go | ||
types.go | ||
websocket_bench_test.go | ||
websocket_test.go | ||
websocket.go |