Update dependency ddtrace to ^0.55.0 #91
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.46.0->^0.55.0Release Notes
DataDog/dd-trace-py
v0.55.4Compare Source
Bug Fixes
botocoreenv variables to ensure they are parsed as booleans.v0.55.3Compare Source
Bug Fixes
v0.55.2Compare Source
0.55.2
Bug Fixes
fix an issue where the incorrect package name was being used which would
crash the application when trying to do relative imports within Pyramid
(e.g. when including routes from a relative path).
v0.55.1Compare Source
0.55.1
Bug Fixes
v0.55.0Compare Source
Release Notes
New Features
/var/run/datadog/dsd.socketwhich if exists, will be used instead of the previous UDP default,udp://localhost:8125/. To be used in conjunction withdogstatsd_socketin yourdatadog.yamlfile, or theDD_DOGSTATSD_SOCKETenvironment variable set on the Datadog agent.DD_TRACE_SAMPLING_RULESenvironment variable to override default sampling rules. For example:DD_TRACE_SAMPLING_RULES='[{"sample_rate":0.5,"service":"my-service"}]'pytestintegration): includepytestversion as a tag in the test span.pytestintegration): Extract stage and job name from environment data in Azure Pipelines.Upgrade Notes
ddtrace.ext.errors. Use constants fromddtrace.constantsmodule. For example:ddtrace.ext.errors.ERROR_MSG->ddtrace.constants.ERROR_MSGddtrace.ext.priority. Use constants fromddtrace.constantsmodule. For example:ddtrace.ext.priority.AUTO_KEEP->ddtrace.constants.AUTO_KEEPddtrace.ext.system. Use constants fromddtrace.constantsmodule. For example:ddtrace.ext.system.PID->ddtrace.constants.PIDDeprecation Notes
Deprecate DATADOG_TRACE_AGENT_HOSTNAME, DATADOG_TRACE_AGENT_PORT, DATADOG_PRIORITY_SAMPLING, DATADOG_PATCH_MODULES in favor of their DD equivalents.
[Deprecated environment variable] | [Recommended environment variable]
DATADOG_TRACE_AGENT_HOSTNAME, useDD_AGENT_HOSTDATADOG_TRACE_AGENT_PORTuseDD_AGENT_PORTDATADOG_PRIORITY_SAMPLING, follow ingestion controlsDATADOG_PATCH_MODULES, useDD_PATCH_MODULESMoved
ddtrace.ext.errorsconstants into theddtrace.constantsmodule.ddtrace.ext.errorswill be removed in v1.0. Shorthand error constant (MSG,TYPE,STACK) inddtrace.ext.errorswill be removed in v1.0. Functionget_traceback()in ddtrace.ext.errors is now deprecated and will be removed v1.0.Moved
ddtrace.ext.priorityconstants intoddtrace.constantsmodule.Moved
ddtrace.ext.systemconstants intoddtrace.constantsmodule.Bug Fixes
DD_LOGS_INJECTIONis enabled.ddtrace.utils.wrappers.unwrapfunction now raises an error if trying to unwrap a non-wrapped object.pytestintegration): Fix extraction of branch in GitLab CI.v0.54.1Compare Source
Bug Fixes
DD_LOGS_INJECTIONis enabled.v0.54.0Compare Source
Release Notes
v0.54.0
New Features
/var/run/datadog/apm.socketwhich if exists, will be used instead of the previous http default,http://localhost:8126/. To be used in conjunction withapm_config.receiver_socketin yourdatadog.yamlfile, or theDD_APM_RECEIVER_SOCKETenvironment variable set on the Datadog agent.DD_PROFILING_ENDPOINT_COLLECTION_ENABLEDenv variable to disable endpoint name collection in profiler.DD_TRACE_HEADER_TAGSenvironment variable. Value must be either comma or space separated. e.g.Host:http.host,User-Agent,http.user_agentorreferer:http.referer Content-Type:http.content_type.Deprecation Notes
Bug Fixes
test.statustag of a test span frompytestwould be missing becausepytest_runtest_makereporthook is not run, like whenpytesthas an internal error.protobufversion to<3.18for Python <=3.5 due to support being dropped.Other Notes
v0.53.3Compare Source
Bug Fixes
v0.53.2Compare Source
Bug Fixes
v0.53.1Compare Source
Bug Fixes
test.statustag of a test span frompytestwould be missing becausepytest_runtest_makereporthook is not run, like whenpytesthas an internal error.protobufversion to<3.18for Python <=3.5 due to support being dropped.v0.53.0Compare Source
Release Notes
v0.53.0
New Features
DD_TRACE_HEADER_TAGSenvironment variable. Value must be either comma or space separated. e.g.Host:http.host,User-Agent,http.user_agentorreferer:http.referer Content-Type:http.content_type.Bug Fixes
django.requestspan resource would get overwritten by the integration.setup_requiresdependencysetuptools_scm[toml]>=4,<6.1to avoid breaking changes.v0.52.1Compare Source
v0.52.1
Bug Fixes
setup_requiresdependencysetuptools_scm[toml]>=4,<6.1to avoid breaking changes.v0.52.0Compare Source
Release Notes
0.52.0
New Features
ddtrace.Tracer.get_log_correlation_contextmethod has been added to replaceddtrace.helpers.get_correlation_ids. It now returns a dictionary which includes the current span's trace and span ids, as well as the configured service, version, and environment names.httpxlibrary. Supported versions>=0.14.0.ddtrace.contrib.asgi.span_from_scopefunction.pytestintegration): It is now possible to specify any of the following git metadata through environment variables:DD_GIT_REPOSITORY_URL: The url of the repository where the code is storedDD_GIT_TAG: The tag of the commit, if it has oneDD_GIT_BRANCH: The branch where this commit belongs toDD_GIT_COMMIT_SHA: The commit hash of the current codeDD_GIT_COMMIT_MESSAGE: Commit messageDD_GIT_COMMIT_AUTHOR_NAME: Commit author nameDD_GIT_COMMIT_AUTHOR_EMAIL: Commit author emailDD_GIT_COMMIT_AUTHOR_DATE: The commit author date (ISO 8601)DD_GIT_COMMIT_COMMITTER_NAME: Commit committer nameDD_GIT_COMMIT_COMMITTER_EMAIL: Commit committer emailDD_GIT_COMMIT_COMMITTER_DATE: The commit committer date (ISO 8601)Bug Fixes
urlconfchanges at any point during the handling of the request then the resource name will only be<METHOD> 404. This fix moves resource name resolution to the end of the request.werkzeug.exceptions.NotFound404 errors are no longer raised and logged as a server error in the Flask integration.**patch_modulesparameter forpatch/patch_allfunctions.AttributeErroronDoctestItem.ENABLED,AGENT_HOSTNAME,AGENT_HTTPSorAGENT_PORTsettings.v0.51.2Compare Source
Release Notes
0.51.2
Bug Fixes
**patch_modulesparameter forpatch/patch_allfunctions.v0.51.1Compare Source
Release Notes
0.51.1
py.typedfile to enable mypy type checking withddtrace.v0.51.0Compare Source
Release Notes
v0.51.0
Upgrade Notes
Bug Fixes
New Features
aiopg~=0.16.0.jinja2~=3.0.0.Deprecation Notes
collect_metricsargument fromTracer.configure. See the release notes for v0.49.0 for the migration instructions.monkey.patch_moduleis deprecated.monkey.get_patch_moduleis deprecated.v0.50.4Compare Source
Release Notes
0.50.4
Bug Fixes
v0.50.3Compare Source
Release Notes
0.50.3
Bug Fixes
v0.50.2Compare Source
Release Notes
0.50.2
Bug Fixes
v0.50.1Compare Source
Release Notes
0.50.1
Bug Fixes
The pytest plugin now defaults to encoding the string representations of non-JSON serializable test parameters.
v0.50.0Compare 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.asyncioAsyncioContextProvidercan now return and activateNone,SpanorContextobjects.ddtrace.contrib.geventGeventContextProvidercan now return and activateNone,SpanorContextobjects.ddtrace.contrib.tornadoTracerStackContextcan now return and activateNone,SpanorContextobjects.ddtrace.context.Contextno 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.BaseContextProvideractive()now returnsNone,SpanorContextobjects.activate()now acceptsNone,SpanorContextobjects.ddtrace.tracer.Tracertracer.get_call_context()will now return a one-offContextreference. This is to maintain backwards compatibility with the API but the functionality differs slightly.tracer.start_span()passing aspan.contextforchild_ofno longer adds the strong_parentreference 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.finishtoOptional[float]instead ofOptional[int].The OpenTracing
tracer.start_spanmethod 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
pymongoclient 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_ENABLEDenvironment 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_BYTESThe exception profiler now gathers and exports the traces and spans information.
Add new
DD_TRACE_AGENT_TIMEOUT_SECONDSto override the default connection timeout used when sending data to the trace agent. The default is2.0seconds.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 whetherddtracecallslogging.basicConfig. By default when usingddtrace-runor running in debug modelogging.basicConfigis called to ensure there is always a root handler. This has compatibility issues for some logging configurations.DD_CALL_BASIC_CONFIG=falsecan be used to skip callinglogging.basicConfig. The default value istrueto maintain existing behavior.agent: support URL with a base path
tracer.start_span()now accepts anactivateargument (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
Bodyfrom the set of span tags.Deprecation Notes
v0.49.4Compare 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.3Compare Source
Release Notes
0.49.3
Bug Fixes
v0.49.2Compare Source
Release Notes
v0.49.2
Bug Fixes
pymongoclient topology.v0.49.1Compare Source
Release Notes
v0.49.1
New Features
v0.49.0Compare Source
Release Notes
v0.49.0
Prelude
Several deprecations have been made to
Contextas we prepare to move active span management out of this class.New Features
ddtrace.config.requests['service']or theDD_REQUESTS_SERVICEenvironment variable.Upgrade Notes
DD_PROFILING_API_URLenvironment variable has been removed. UseDD_SITEinstead.DD_PROFILING_API_KEYenvironment variable has been removed. UseDD_API_KEYinstead.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_dictshas been removed.Deprecation Notes
Context.cloneis deprecated. It will not be required in 0.50.Context.add_spanis deprecated and will be removed in 0.50.Context.add_spanis deprecated and will be removed in 0.50.Context.close_spanis deprecated and will be removed in 0.50.Context.get_current_spanis deprecated and will be removed in 0.50 please useTracer.current_spaninstead.Context.get_current_root_spanis deprecated and will be removed in 0.50 please useTracer.current_root_spaninstead.Before
After
ddtrace.compathas been deprecated and will be removed from the public API in ddtrace version 1.0.0.ddtrace.config.dbapi2as default forTracedCursorandTracedConnectionas well asDD_DBAPI2_TRACE_FETCH_METHODS. UseIntegrationConfigandDD_<INTEGRATION>_TRACE_FETCH_METHODSspecific to each dbapi-compliant library. For example:Before
After
ddtrace.encodinghas been deprecated and will be removed in version 1.0.0.ddtrace.httpmodule has been deprecated and will be removed in version 1.0.0, with theddtrace.http.headersmodule now merged intoddtrace.trace_utils.collect_metricsargument of thetracer.configuremethod has been deprecated. Runtime metrics should be enabled only via theDD_RUNTIME_METRICS_ENABLEDenvironment variable.Bug Fixes
<stdint.h>was not available. This change also ensures we build and publishcp27-winwheels.logging.StrFormatStyle(logging.Formatter(fmt, style="{")) log formatter.urllib3patching not properly activating the integration.pymemcache.client.hash.HashClient.Other Notes
DD_BOTTLE_DISTRIBUTED_TRACINGto enable distributed tracing for bottle.attrslibrary has been unvendored and is now required as a normal Python dependency with a minimum version requirement of 19.2.0.geventworker class has been added.DD_FALCON_DISTRIBUTED_TRACINGto enable distributed tracing for falcon.DD_PYLONS_DISTRIBUTED_TRACINGto enable distributed tracing for pylons.pymemcachetest suite to test latest versions.config.pyramid.distributed_tracingsetting to integration config for pyramid.ddtrace.ext.AppTypesand its usages in the tracer library.ddtrace.payloadsubmodule has been removed.DD_TORNADO_DISTRIBUTED_TRACINGto enable distributed tracing for tornado.v0.48.4Compare Source
Release Notes
v0.48.4
Bug Fixes
v0.48.3Compare Source
Bug Fixes
grpc.Futurebut has the same interface, as is the case with the base future class ingoogle-api-core.v0.48.2Compare Source
Bug Fixes
v0.48.1Compare Source
Bug Fixes
urllib3patching not properly activating the integration.v0.48.0Compare Source
New Features
ddtrace.patch_allvia the--ddtrace-patch-alloption.Spannow accepts aon_finishargument used for specifying functions to call when a span finishes.DD_TAGS.Upgrade Notes
dogstatsd_hostanddogstatsd_portarguments totracer.configure()have been removed.extra_error_codeshas been removed.pyddprofilewrapper has been removed. Useddtrace-runwithDD_PROFILING_ENABLED=1set instead.ValueErrorwill now be raised on tracer initialization if the Agent URL specified to the initializer or with the environment variableDD_TRACE_AGENT_URLis malformed.ddtrace-rundue to a limitation of how tracer initialization occurs. See the updated instructions for enabling tracing in the libraryuWSGI documentation<uwsgi>.ddtrace.apimodule has been removed.Bug Fixes
Recordsparameter toFirehoseendpoint calls is being excluded from the tags to avoid generating traces with a large payload.DefTemplateor anyTemplatethat does not have afilenameproperty.ddtrace-runfor automatic instrumentation and configuration or manual instrumentation and configuration without the necessary uWSGI options. The problem is caused by how the tracer can end up starting threads in the master process before uWSGI forks to initialize the workers processes. To avoid this, we have provided updated instructions for enabling tracing in the library uWSGI documentation.Other Notes
v0.47.0Compare Source
v0.47.0
Upgrade Notes
profile_children=True. Make sure that you don't have custom code instrumenting the profiler in those cases.Tracerclass propertiesDEFAULT_HOSTNAME,DEFAULT_PORT,DEFAULT_DOGSTATSD_PORT,DEFAULT_DOGSTATSD_URL,DEFAULT_AGENT_URLhave been removed.get_traced_transportmethod andddtrace.contrib.elasticsearch.transportmodule.New Features
Bug Fixes
query_stringis not present in request.META, a KeyError is raised, causing the request to 500Other Notes
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.