Skip to content

Commit 1a94b04

Browse files
continue cleaning
1 parent 99b26ce commit 1a94b04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datadog_lambda/tracing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050

5151
set_tracer_provider(TracerProvider())
5252

53+
5354
logger = logging.getLogger(__name__)
5455

5556
dd_trace_context = None
@@ -226,6 +227,7 @@ def extract_context_from_sqs_or_sns_event_or_context(event, lambda_context):
226227

227228
try:
228229
first_record = event.get("Records")[0]
230+
229231
arn = first_record.get("eventSourceARN", "")
230232
if arn:
231233
is_sqs = True
@@ -256,6 +258,7 @@ def extract_context_from_sqs_or_sns_event_or_context(event, lambda_context):
256258
import base64
257259

258260
dd_json_data = dd_payload.get("binaryValue") or dd_payload.get("Value")
261+
259262
if dd_json_data:
260263
dd_json_data = base64.b64decode(dd_json_data)
261264
elif dd_json_data_type == "String":

0 commit comments

Comments
 (0)