Make elapsed time available in the response event hook
#2722
|
There are two types of elapsed time on a response:
In many scenarios, we have Is it possible to add a mechanism in which:
|
Answered by
lovelydinosaur
May 26, 2023
Replies: 2 comments 1 reply
|
Options here...
|
0 replies
Answer selected by
joaonc
|
Here's a workaround I found: elapsed_time_seconds: float = response.stream._timer.sync_elapsed() # If you're using a sync client
elapsed_time_seconds: float = await response.stream._timer.async_elapsed() # If you're using an async clientThis is basically what Using |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Options here...
"trace"extension for more granualar time tracking.