(feat) add response_time to StandardLoggingPayload - logged on datadog, gcs_bucket, s3_bucket etc (#7199)

* feat - add response_time to slp

* test_get_response_time

* docs slp

* fix test_datadog_logging_http_request
This commit is contained in:
Ishaan Jaff 2024-12-12 12:04:43 -08:00 committed by GitHub
parent aa7f416b7f
commit 153ab055d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 73 additions and 40 deletions

View file

@ -226,6 +226,7 @@ async def test_datadog_logging_http_request():
# Parse the 'message' field as JSON and check its structure
message = json.loads(body[0]["message"])
print("logged message", json.dumps(message, indent=4))
expected_message_fields = StandardLoggingPayload.__annotations__.keys()