Skip to content

Commit 8b0313b

Browse files
remove unneccesary import
1 parent 9996fbb commit 8b0313b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

datadog_lambda/tracing.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,19 @@
6565
DD_TRACE_JAVA_TRACE_ID_PADDING = "00000000"
6666
HIGHER_64_BITS = "HIGHER_64_BITS"
6767
LOWER_64_BITS = "LOWER_64_BITS"
68+
PROPAGATION_KEY_BASE_64 = "dd-pathway-ctx-base64"
6869

6970

7071
def _dsm_set_checkpoint(context_json, event_type, arn):
71-
if not config.data_streams_enabled:
72-
return
73-
7472
if not isinstance(context_json, dict):
7573
return
7674

77-
from ddtrace.data_streams import PROPAGATION_KEY_BASE_64
78-
7975
if context_json and PROPAGATION_KEY_BASE_64 not in context_json:
8076
return
8177

78+
if not config.data_streams_enabled:
79+
return
80+
8281
try:
8382
from ddtrace.data_streams import set_consume_checkpoint
8483

0 commit comments

Comments
 (0)