mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-14 16:25:29 +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:
@@ -61,7 +61,7 @@ class DataDogLogger:
|
||||
id = response_obj.get("id", str(uuid.uuid4()))
|
||||
usage = dict(usage)
|
||||
try:
|
||||
response_time = (end_time - start_time).total_seconds()
|
||||
response_time = (end_time - start_time).total_seconds() * 1000
|
||||
except:
|
||||
response_time = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user