Skip to content

Commit

Permalink
Restore time measurement on request end
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanasiak committed Jun 26, 2024
1 parent f72ea62 commit b39ba8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions esrally/client/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ async def on_request_end(session, trace_config_ctx, params):
# will ultimately record the time when it received the *last* chunk. This is what we want because any code
# that is using the Elasticsearch client library can only act on the response once it is fully received.
trace_config.on_response_chunk_received.append(on_request_end)
trace_config.on_request_end.append(on_request_end)
# ensure that we also stop the timer when a request "ends" with an exception (e.g. a timeout)
trace_config.on_request_exception.append(on_request_end)

Expand Down

0 comments on commit b39ba8c

Please sign in to comment.