Skip to content

Commit 7f3223b

Browse files
committed
Improve error log message when no sns->sqs context found.
1 parent 7334375 commit 7f3223b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_lambda/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def extract_context_from_sqs_or_sns_event_or_context(event, lambda_context):
262262
dd_payload.get("Value", r"{}"),
263263
)
264264
else:
265-
logger.debug(
265+
raise Exception(
266266
"Datadog Lambda Python only supports extracting trace"
267267
"context from String or Binary SQS/SNS message attributes"
268268
)

0 commit comments

Comments
 (0)