Skip to content

Commit dfef34f

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datadog_lambda/tracing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def extract_context_from_sqs_or_sns_event_or_context(event, lambda_context):
266266
"Datadog Lambda Python only supports extracting trace"
267267
"context from String or Binary SQS/SNS message attributes"
268268
)
269+
return extract_context_from_lambda_context(lambda_context)
269270
dd_data = json.loads(dd_json_data)
270271
return propagator.extract(dd_data)
271272
except Exception as e:

0 commit comments

Comments
 (0)