mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
Use milliseconds for response_time in Datadog logs
milliseconds is more commonly used and more standard than seconds
This commit is contained in:
parent
9b89280a90
commit
a7e877d15f
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class DataDogLogger:
|
||||||
id = response_obj.get("id", str(uuid.uuid4()))
|
id = response_obj.get("id", str(uuid.uuid4()))
|
||||||
usage = dict(usage)
|
usage = dict(usage)
|
||||||
try:
|
try:
|
||||||
response_time = (end_time - start_time).total_seconds()
|
response_time = (end_time - start_time).total_seconds() * 1000
|
||||||
except:
|
except:
|
||||||
response_time = None
|
response_time = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue