Skip to content

Commit d3dbf67

Browse files
fix
1 parent 9a866a8 commit d3dbf67

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

6868
for record in records:
6969
arn = record.get("eventSourceARN", "")
70-
payload_size = calculate_kinesis_payload_size(record)
71-
_dsm_set_context_helper(record, "kinesis", arn, payload_size)
70+
context_json = _get_dsm_context_from_lambda(record)
71+
payload_size = calculate_kinesis_payload_size(record, context_json)
72+
73+
_dsm_set_context_helper("kinesis", arn, payload_size, context_json)
7274

7375

7476
def _get_dsm_context_from_lambda(message):

0 commit comments

Comments
 (0)