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:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Options here...
|
Beta Was this translation helpful? Give feedback.
-
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 client This is basically what Using |
Beta Was this translation helpful? Give feedback.
Options here...
"trace"
extension for more granualar time tracking.