Skip to content

Commit 3cce3a0

Browse files
committed
fix: accept extra logging keys instead of dropping
1 parent efaef58 commit 3cce3a0

File tree

1 file changed

+2
-3
lines changed
  • tests/e2e/utils/data_fetcher

1 file changed

+2
-3
lines changed

tests/e2e/utils/data_fetcher/logs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
import boto3
66
from mypy_boto3_logs import CloudWatchLogsClient
7-
from pydantic import BaseModel
7+
from pydantic import BaseModel, Extra
88
from retry import retry
99

1010

11-
class Log(BaseModel):
11+
class Log(BaseModel, extra=Extra.allow):
1212
level: str
1313
location: str
1414
message: Union[dict, str]
@@ -20,7 +20,6 @@ class Log(BaseModel):
2020
function_arn: Optional[str]
2121
function_request_id: Optional[str]
2222
xray_trace_id: Optional[str]
23-
extra_info: Optional[str]
2423

2524

2625
@retry(ValueError, delay=2, jitter=1.5, tries=10)

0 commit comments

Comments
 (0)