Add logging for EL request time outs

This commit is contained in:
Zahary Karadjov 2023-05-02 16:52:26 +03:00
parent 0c75f9c2df
commit 18d1f62ff1
No known key found for this signature in database
GPG Key ID: C1F42EAFF38D570F
2 changed files with 3 additions and 1 deletions

View File

@ -322,6 +322,8 @@ proc trackEngineApiRequest(connection: ELConnection,
if not request.finished:
request.cancel()
engine_api_timeouts.inc(1, [connection.engineUrl.url, requestName])
if not failureAllowed:
connection.setDegradedState(requestName, 0, "Request timed out")
else:
let statusCode = if not request.failed:
200

2
vendor/nim-kzg4844 vendored

@ -1 +1 @@
Subproject commit d43f988daaf31b73bf1e73d6b9593a763b628b87
Subproject commit 35fd5337d38931d06fe828d65243a5a5b70db123