Skip to content

Commit 515853c

Browse files
fix
1 parent 0238340 commit 515853c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datadog_lambda/dsm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ def _dsm_set_kinesis_context(event):
8989

9090
for record in records:
9191
arn = record.get("eventSourceARN", "")
92-
payload_size = calculate_kinesis_payload_size(record)
93-
_dsm_set_context_helper(record, "kinesis", arn, payload_size)
92+
context_json = _get_dsm_context_from_lambda(record)
93+
payload_size = calculate_kinesis_payload_size(record, context_json)
94+
95+
_dsm_set_context_helper("kinesis", arn, payload_size, context_json)
9496

9597

9698
def _get_dsm_context_from_lambda(message):

0 commit comments

Comments
 (0)