File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def set_cold_start(init_timestamp_ns):
31
31
_cold_start = False
32
32
_proactive_initialization = False
33
33
_lambda_container_initialized = True
34
- from ddtrace import tracer as _tracer
34
+ from ddtrace . trace import tracer as _tracer
35
35
36
36
37
37
def is_cold_start ():
Original file line number Diff line number Diff line change 30
30
parse_xray_header ,
31
31
)
32
32
33
- from ddtrace import tracer , patch , Span
33
+ from ddtrace import patch
34
34
from ddtrace import __version__ as ddtrace_version
35
35
from ddtrace .propagation .http import HTTPPropagator
36
- from ddtrace .context import Context
36
+ from ddtrace .trace import Context , Span , tracer
37
37
from datadog_lambda import __version__ as datadog_lambda_version
38
38
from datadog_lambda .trigger import (
39
39
_EventSource ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ classifiers = [
27
27
python = " >=3.8.0,<4"
28
28
datadog = " >=0.41.0,<1.0.0"
29
29
wrapt = " ^1.11.2"
30
- ddtrace = " >=2.17 .0"
30
+ ddtrace = " >=2.20 .0"
31
31
ujson = " >=5.9.0"
32
32
boto3 = { version = " ^1.34.0" , optional = true }
33
33
requests = { version =" ^2.22.0" , optional = true }
Original file line number Diff line number Diff line change 10
10
11
11
import ddtrace
12
12
13
- from ddtrace import tracer
14
- from ddtrace .context import Context
13
+ from ddtrace . trace import tracer
14
+ from ddtrace .trace import Context
15
15
from ddtrace ._trace ._span_pointer import _SpanPointer
16
16
from ddtrace ._trace ._span_pointer import _SpanPointerDirection
17
17
from ddtrace ._trace ._span_pointer import _SpanPointerDescription
Original file line number Diff line number Diff line change 10
10
import datadog_lambda .xray as xray
11
11
from datadog_lambda .metric import lambda_metric
12
12
from datadog_lambda .thread_stats_writer import ThreadStatsWriter
13
- from ddtrace import Span , tracer
13
+ from ddtrace . trace import Span , tracer
14
14
from ddtrace .internal .constants import MAX_UINT_64BITS
15
15
16
16
from tests .utils import get_mock_context , reset_xray_connection
You can’t perform that action at this time.
0 commit comments