File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 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):
3131 _cold_start = False
3232 _proactive_initialization = False
3333 _lambda_container_initialized = True
34- from ddtrace import tracer as _tracer
34+ from ddtrace . trace import tracer as _tracer
3535
3636
3737def is_cold_start ():
Original file line number Diff line number Diff line change 3030 parse_xray_header ,
3131)
3232
33- from ddtrace import tracer , patch , Span
33+ from ddtrace import patch
3434from ddtrace import __version__ as ddtrace_version
3535from ddtrace .propagation .http import HTTPPropagator
36- from ddtrace .context import Context
36+ from ddtrace .trace import Context , Span , tracer
3737from datadog_lambda import __version__ as datadog_lambda_version
3838from datadog_lambda .trigger import (
3939 _EventSource ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ classifiers = [
2727python = " >=3.8.0,<4"
2828datadog = " >=0.41.0,<1.0.0"
2929wrapt = " ^1.11.2"
30- ddtrace = " >=2.17 .0"
30+ ddtrace = " >=2.20 .0"
3131ujson = " >=5.9.0"
3232boto3 = { version = " ^1.34.0" , optional = true }
3333requests = { version =" ^2.22.0" , optional = true }
Original file line number Diff line number Diff line change 1010
1111import ddtrace
1212
13- from ddtrace import tracer
14- from ddtrace .context import Context
13+ from ddtrace . trace import tracer
14+ from ddtrace .trace import Context
1515from ddtrace ._trace ._span_pointer import _SpanPointer
1616from ddtrace ._trace ._span_pointer import _SpanPointerDirection
1717from ddtrace ._trace ._span_pointer import _SpanPointerDescription
Original file line number Diff line number Diff line change 1010import datadog_lambda .xray as xray
1111from datadog_lambda .metric import lambda_metric
1212from datadog_lambda .thread_stats_writer import ThreadStatsWriter
13- from ddtrace import Span , tracer
13+ from ddtrace . trace import Span , tracer
1414from ddtrace .internal .constants import MAX_UINT_64BITS
1515
1616from tests .utils import get_mock_context , reset_xray_connection
You can’t perform that action at this time.
0 commit comments