We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0238340 commit 515853cCopy full SHA for 515853c
datadog_lambda/dsm.py
@@ -89,8 +89,10 @@ def _dsm_set_kinesis_context(event):
89
90
for record in records:
91
arn = record.get("eventSourceARN", "")
92
- payload_size = calculate_kinesis_payload_size(record)
93
- _dsm_set_context_helper(record, "kinesis", arn, payload_size)
+ context_json = _get_dsm_context_from_lambda(record)
+ payload_size = calculate_kinesis_payload_size(record, context_json)
94
+
95
+ _dsm_set_context_helper("kinesis", arn, payload_size, context_json)
96
97
98
def _get_dsm_context_from_lambda(message):
0 commit comments