Update dependency ddtrace to ^0.50.0 #51
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.48.2
->^0.50.0
Release Notes
DataDog/dd-trace-py
v0.50.0
Compare Source
Release Notes
v0.50.0
Prelude
Major changes to context management. See the upgrade section for the specifics. Note that only advanced users of the library should be affected by these changes. For the details please refer to the Context section of the docs: https://ddtrace.readthedocs.io/en/v0.50.0/advanced_usage.html
Upgrade Notes
ddtrace.contrib.asyncio
AsyncioContextProvider
can now return and activateNone
,Span
orContext
objects.ddtrace.contrib.gevent
GeventContextProvider
can now return and activateNone
,Span
orContext
objects.ddtrace.contrib.tornado
TracerStackContext
can now return and activateNone
,Span
orContext
objects.ddtrace.context.Context
no longer maintains the active/current span state.get_current_root_span()
has been removed. Usetracer.current_root_span()
instead.get_current_span()
has been removed. Usetracer.current_span()
instead.add_span()
has been removed. To activate a span in an execution usetracer.context_provider.activate()
instead.close_span()
has been removed. To deactivate a span in an execution usetracer.context_provider.activate()
instead.ddtrace.provider.BaseContextProvider
active()
now returnsNone
,Span
orContext
objects.activate()
now acceptsNone
,Span
orContext
objects.ddtrace.tracer.Tracer
tracer.get_call_context()
will now return a one-offContext
reference. This is to maintain backwards compatibility with the API but the functionality differs slightly.tracer.start_span()
passing aspan.context
forchild_of
no longer adds the strong_parent
reference to the new span.Support for MySQL-python has been removed.
Support for psycopg < 2.7 has been removed.
Bug Fixes
Fixes an issue with enabling the runtime worker introduced in v0.49.0 where no runtime metrics were sent to the agent.
Fixed the handling of the Django template name tag causing type errors.
Fixes an issue when trying to manually start the runtime metrics worker:
sanic: update instrumentation to support version 21.
Performance of the Celery integration has been improved.
Fix runtime-id and system.pid tags not being set on distributed traces.
The shutdown task is re-registered when a tracer is reused after it has been shut down.
Fixed the optional argument of
Span.finish
toOptional[float]
instead ofOptional[int]
.The OpenTracing
tracer.start_span
method no longer activates spans.Datadog active spans will no longer take precedence over OpenTracing active spans.
django: fix a bug where multiple database backends would not be instrumented.
django: fix a bug when postgres query is composable sql object.
A possible memory leak that occurs when tracing across a fork has been fixed. See #2497 for more information.
Fix double patching of
pymongo
client topology.New Features
Automated context management should now work in all asynchronous frameworks that use
contextvars
.The Python heap profiler can now be enabled by setting the
DD_PROFILING_HEAP_ENABLED
environment variable to1
.The pytest plugin now includes support for automatically tagging spans with parameters in parameterized tests.
Add new environment variables to configure the internal trace writer.
DD_TRACE_WRITER_MAX_BUFFER_SIZE
,DD_TRACE_WRITER_INTERVAL_SECONDS
,DD_TRACE_WRITER_MAX_PAYLOAD_SIZE_BYTES
The exception profiler now gathers and exports the traces and spans information.
Add new
DD_TRACE_AGENT_TIMEOUT_SECONDS
to override the default connection timeout used when sending data to the trace agent. The default is2.0
seconds.The CI tagging for the pytest plugin now includes OS and Python Runtime metadata including system architecture, platform, version, and Python runtime name and version.
Add
DD_CALL_BASIC_CONFIG={true,false}
environment variable to control whetherddtrace
callslogging.basicConfig
. By default when usingddtrace-run
or running in debug modelogging.basicConfig
is called to ensure there is always a root handler. This has compatibility issues for some logging configurations.DD_CALL_BASIC_CONFIG=false
can be used to skip callinglogging.basicConfig
. The default value istrue
to maintain existing behavior.agent: support URL with a base path
tracer.start_span()
now accepts anactivate
argument (defaultFalse
) to allow manual context management.tracer.current_trace_context()
has been added to be used to access the trace context of the active trace.A warning has been added to alert when gevent monkey patching is done after ddtrace has been imported.
Add support for Flask 2.
Added retry logic to the tracer to mitigate potential networking issues, like timeouts or dropped connections.
Other Notes
Body
from the set of span tags.Deprecation Notes
v0.49.4
Compare Source
Release Notes
0.49.4
Bug Fixes
Fixes an issue when trying to manually start the runtime metrics worker:
Fixes an issue with enabling the runtime worker introduced in v0.49.0 where no runtime metrics were sent to the agent.
v0.49.3
Compare Source
Release Notes
0.49.3
Bug Fixes
v0.49.2
Compare Source
Release Notes
v0.49.2
Bug Fixes
pymongo
client topology.v0.49.1
Compare Source
Release Notes
v0.49.1
New Features
v0.49.0
Compare Source
Release Notes
v0.49.0
Prelude
Several deprecations have been made to
Context
as we prepare to move active span management out of this class.New Features
ddtrace.config.requests['service']
or theDD_REQUESTS_SERVICE
environment variable.Upgrade Notes
DD_PROFILING_API_URL
environment variable has been removed. UseDD_SITE
instead.DD_PROFILING_API_KEY
environment variable has been removed. UseDD_API_KEY
instead.Span.pprint()
has been changed to a single line in the tracer debug logs rather than the previous custom multiline format.tracer.write()
will no longer have filters applied to the spans passed to it.ddtrace.utils.merge_dicts
has been removed.Deprecation Notes
Context.clone
is deprecated. It will not be required in 0.50.Context.add_span
is deprecated and will be removed in 0.50.Context.add_span
is deprecated and will be removed in 0.50.Context.close_span
is deprecated and will be removed in 0.50.Context.get_current_span
is deprecated and will be removed in 0.50 please useTracer.current_span
instead.Context.get_current_root_span
is deprecated and will be removed in 0.50 please useTracer.current_root_span
instead.Before
After
ddtrace.compat
has been deprecated and will be removed from the public API in ddtrace version 1.0.0.ddtrace.config.dbapi2
as default forTracedCursor
andTracedConnection
as well asDD_DBAPI2_TRACE_FETCH_METHODS
. UseIntegrationConfig
andDD_<INTEGRATION>_TRACE_FETCH_METHODS
specific to each dbapi-compliant library. For example:Before
After
ddtrace.encoding
has been deprecated and will be removed in version 1.0.0.ddtrace.http
module has been deprecated and will be removed in version 1.0.0, with theddtrace.http.headers
module now merged intoddtrace.trace_utils
.collect_metrics
argument of thetracer.configure
method has been deprecated. Runtime metrics should be enabled only via theDD_RUNTIME_METRICS_ENABLED
environment variable.Bug Fixes
<stdint.h>
was not available. This change also ensures we build and publishcp27-win
wheels.logging.StrFormatStyle
(logging.Formatter(fmt, style="{")
) log formatter.urllib3
patching not properly activating the integration.pymemcache.client.hash.HashClient
.Other Notes
DD_BOTTLE_DISTRIBUTED_TRACING
to enable distributed tracing for bottle.attrs
library has been unvendored and is now required as a normal Python dependency with a minimum version requirement of 19.2.0.gevent
worker class has been added.DD_FALCON_DISTRIBUTED_TRACING
to enable distributed tracing for falcon.DD_PYLONS_DISTRIBUTED_TRACING
to enable distributed tracing for pylons.pymemcache
test suite to test latest versions.config.pyramid.distributed_tracing
setting to integration config for pyramid.ddtrace.ext.AppTypes
and its usages in the tracer library.ddtrace.payload
submodule has been removed.DD_TORNADO_DISTRIBUTED_TRACING
to enable distributed tracing for tornado.v0.48.4
Compare Source
Release Notes
v0.48.4
Bug Fixes
v0.48.3
Compare Source
Bug Fixes
grpc.Future
but has the same interface, as is the case with the base future class ingoogle-api-core
.Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.