File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,14 @@ ddtrace/internal/remoteconfig @DataDog/remote-config @DataDog/apm-core-pyt
166
166
tests /internal /remoteconfig @ DataDog/remote-config @ DataDog/apm-core-python
167
167
168
168
# API SDK
169
+ ddtrace /trace / @ DataDog/apm-sdk-api-python
169
170
ddtrace /_trace / @ DataDog/apm-sdk-api-python
170
171
ddtrace /opentelemetry / @ DataDog/apm-sdk-api-python
171
172
ddtrace /internal /opentelemetry @ DataDog/apm-sdk-api-python
172
173
ddtrace /opentracer / @ DataDog/apm-sdk-api-python
173
174
ddtrace /propagation / @ DataDog/apm-sdk-api-python
174
175
ddtrace /filters.py @ DataDog/apm-sdk-api-python
176
+ ddtrace /provider.py @ DataDog/apm-sdk-api-python
175
177
ddtrace /pin.py @ DataDog/apm-sdk-api-python
176
178
ddtrace /sampler.py @ DataDog/apm-sdk-api-python
177
179
ddtrace /sampling_rule.py @ DataDog/apm-sdk-api-python
Original file line number Diff line number Diff line change 7
7
8
8
9
9
deprecate (
10
- "The context provider interface is deprecated. " ,
11
- message = "The trace context is an internal interface and will no longer be supported ." ,
10
+ "The context provider interface is deprecated" ,
11
+ message = "Import BaseContextProvider from `ddtrace.trace` instead ." ,
12
12
category = DDTraceDeprecationWarning ,
13
+ removal_version = "3.0.0" ,
13
14
)
Original file line number Diff line number Diff line change 1
1
from ddtrace ._trace .context import Context
2
2
from ddtrace ._trace .filters import TraceFilter
3
3
from ddtrace ._trace .pin import Pin
4
+ from ddtrace ._trace .provider import BaseContextProvider
4
5
from ddtrace ._trace .span import Span
5
6
from ddtrace ._trace .tracer import Tracer
6
7
15
16
"Tracer" ,
16
17
"Span" ,
17
18
"tracer" ,
19
+ "BaseContextProvider" ,
18
20
]
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ context management.
221
221
222
222
If there is a case where the default is insufficient then a custom context
223
223
provider can be used. It must implement the
224
- :class: `ddtrace.provider .BaseContextProvider ` interface and can be configured
224
+ :class: `ddtrace.trace .BaseContextProvider ` interface and can be configured
225
225
with::
226
226
227
227
tracer.configure(context_provider=MyContextProvider)
Original file line number Diff line number Diff line change
1
+ ---
2
+ deprecations :
3
+ - |
4
+ tracing: Moves ``ddtrace.provider.BaseContextProvider`` to ``ddtrace.trace.BaseContextProvider``.
5
+ The ``ddtrace.provider`` module is deprecated and will be removed in v3.0.0.
You can’t perform that action at this time.
0 commit comments