Skip to content

Commit 2061226

Browse files
fix
1 parent 9e5696d commit 2061226

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
@@ -91,8 +91,10 @@ def _dsm_set_kinesis_context(event):
9191

9292
for record in records:
9393
arn = record.get("eventSourceARN", "")
94-
payload_size = calculate_kinesis_payload_size(record)
95-
_dsm_set_context_helper(record, "kinesis", arn, payload_size)
94+
context_json = _get_dsm_context_from_lambda(record)
95+
payload_size = calculate_kinesis_payload_size(record, context_json)
96+
97+
_dsm_set_context_helper("kinesis", arn, payload_size, context_json)
9698

9799

98100
def _get_dsm_context_from_lambda(message):

0 commit comments

Comments
 (0)