Use underscores

Datadog does not play nice with special characters (as in "(seconds)").  Also just makes sense to standardize on either underscores or camelCase, but not mix-and-match.
This commit is contained in:
Idris Mokhtarzada 2024-07-26 16:38:54 -04:00 committed by GitHub
parent b515d4f441
commit 9b89280a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,12 +91,12 @@ class DataDogLogger:
"id": id,
"call_type": call_type,
"cache_hit": cache_hit,
"startTime": start_time,
"endTime": end_time,
"responseTime (seconds)": response_time,
"start_time": start_time,
"end_time": end_time,
"response_time": response_time,
"model": kwargs.get("model", ""),
"user": kwargs.get("user", ""),
"modelParameters": optional_params,
"model_parameters": optional_params,
"spend": kwargs.get("response_cost", 0),
"messages": messages,
"response": response_obj,