Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Aug 26, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ddtrace ^0.51.0 -> ^0.57.0 age adoption passing confidence
ddtrace ==0.48.4 -> ==0.57.3 age adoption passing confidence

Release Notes

DataDog/dd-trace-py

v0.57.3

Compare Source

Bug Fixes
  • Fix JSON encoding error when a bytes string is used for span metadata.
  • Fix a bug in the heap profiler that could be triggered if more than 2^16 memory items were freed during heap data collection.
  • Fix a possible bug in the heap memory profiler that could trigger an overflow when too many allocations were being tracked.
  • Pymongo instrumentation raises an AttributeError when tracer.enabled == False

v0.57.2

Compare Source

Bug Fixes
  • Fix application crash on startup when using channels >= 3.0.
  • Fix parenting of Redis command spans when using aioredis 1.3. Redis spans should now be correctly attributed as child of any active parent spans.
  • Fixes issue with aioredis when empty pool is not available and execute returns a coroutine instead of a future. When patch tries to add callback for the span using add_done_callback function it crashes because this function is only for futures.
  • Profiler raises a typing error when Span.resource is unicode on Python 2.7.

v0.57.1

Compare Source

Bug Fixes
  • Fixes incompatibility of wrapped aioredis pipelines in async with statements.
  • Escape non-Unicode bytes when decoding aioredis args. This fixes a UnicodeDecodeError that can be thrown from the aioredis integration when interacting with binary-encoded data, as is done in channels-redis.
  • grpc: ensure grpc.intercept_channel is unpatched properly

v0.57.0

Compare Source

New Features
  • Add django 4.0 support.

  • The profiler now automatically injects running greenlets as tasks into the main thread. They can be seen within the wall time profiles.

  • Add new environment variables to enable/disable django database and cache instrumentation.

    DD_DJANGO_INSTRUMENT_DATABASES, DD_DJANGO_INSTRUMENT_CACHES

  • Add tracing support for the aioredis library. Version 1.3+ is fully supported.

Deprecation Notes
  • ddtrace.sampler.DatadogSampler.default_sampler property is deprecated and will be removed in 1.0.
  • ddtrace.propagation.utils has been deprecated and will be removed in version 1.0.
Bug Fixes
  • Only for CI Visibility (pytest integration): Fix calculation of pipeline URL for GitHub Actions.

v0.56.1

Compare Source

Bug Fixes
  • Fix error when calling concurrent.futures.ThreadPoolExecutor.submit with fn keyword argument.

v0.56.0

Compare Source

Upgrade Notes
  • The aredis integration is now enabled by default.
Bug Fixes
  • The thread safety of the custom buffered encoder was fixed in order to eliminate a potential cause of decoding errors of trace payloads (missing trace data) in the agent.
  • Fix handling of Python exceptions during trace encoding. The tracer will no longer silently fail to encode invalid span data and instead log an exception.
  • Configure a writer thread in a child process after forking based on writer configuration from its parent process.
  • Allow the elasticsearch service name to be overridden using the integration config or the DD_SERVICE_MAPPING environment variable.
  • Fixes parsing of botocore env variables to ensure they are parsed as booleans.
  • Ensure tornado spans are marked as an error if the response status code is 500 <= x < 600.
  • Fix memory leak caused when the tracer is disabled.
  • Fix Pyramid caller_package level issue which resulted in crashes when starting Pyramid applications. Level now left at default (2).
  • Set the correct package name in the Pyramid instrumentation. This should 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).
New Features
  • Profiling now supports tracing greenlets with gevent version prior to 1.3.
  • The heap profiler is now enabled by default.
  • Add yaaredis ≥ 2.0.0 support.
Deprecation Notes
  • The ddtrace.utils module and all of its submodules have been copied over into ddtrace.internal in an effort to internalize these modules. Their public counterparts will be removed entirely in version 1.0.0.
  • The contents of monkey.py have been moved into _monkey.py in an effort to internalize the module. Public methods have been imported back into monkey.py in order to retain compatibility, but monkey.py will be removed entirely in version 1.0.0.

v0.55.4

Compare Source

Bug Fixes
  • Fixes parsing of botocore env variables to ensure they are parsed as booleans.
  • Ensure tornado spans are marked as an error if the response status code is 500 <= x < 600.

v0.55.3

Compare Source

Bug Fixes
  • Fix memory leak caused when the tracer is disabled.

v0.55.2

Compare Source

0.55.2

Bug Fixes
  • Set the correct package name in the Pyramid instrumentation. This should
    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.1

Compare Source

0.55.1

Bug Fixes
  • Fix Pyramid caller_package level issue which resulted in crashes when starting Pyramid applications. Level now left at default (2).

v0.55.0

Compare Source

Release Notes

New Features
  • Add official support for Python 3.10
  • Add aredis support >= 1.1.0
  • Add automatic unix domain socket detection for Dogstatsd. The expected path for the socket is /var/run/datadog/dsd.socket which if exists, will be used instead of the previous UDP default, udp://localhost:8125/. To be used in conjunction with dogstatsd_socket in your datadog.yaml file, or the DD_DOGSTATSD_SOCKET environment variable set on the Datadog agent.
  • Add new DD_TRACE_SAMPLING_RULES environment variable to override default sampling rules. For example: DD_TRACE_SAMPLING_RULES='[{"sample_rate":0.5,"service":"my-service"}]'
  • Add support for snowflake-connector-python >= 2.0.0. Note that this integration is in beta and is not enabled by default. See the snowflake integration documentation for how to enable.
  • Only for CI Visibility (pytest integration): include pytest version as a tag in the test span.
  • Only for CI Visibility (pytest integration): Extract stage and job name from environment data in Azure Pipelines.
Upgrade Notes
  • Instead of using error constants from ddtrace.ext.errors. Use constants from ddtrace.constants module. For example: ddtrace.ext.errors.ERROR_MSG -> ddtrace.constants.ERROR_MSG
  • Instead of using priority constants from ddtrace.ext.priority. Use constants from ddtrace.constants module. For example: ddtrace.ext.priority.AUTO_KEEP -> ddtrace.constants.AUTO_KEEP
  • Instead of using system constants from ddtrace.ext.system. Use constants from ddtrace.constants module. For example: ddtrace.ext.system.PID -> ddtrace.constants.PID
Deprecation 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]

    • For DATADOG_TRACE_AGENT_HOSTNAME, use DD_AGENT_HOST
    • For DATADOG_TRACE_AGENT_PORT use DD_AGENT_PORT
    • For DATADOG_PRIORITY_SAMPLING, follow ingestion controls
    • For DATADOG_PATCH_MODULES, use DD_PATCH_MODULES
  • Moved ddtrace.ext.errors constants into the ddtrace.constants module. ddtrace.ext.errors will be removed in v1.0. Shorthand error constant (MSG,TYPE,STACK) in ddtrace.ext.errors will be removed in v1.0. Function get_traceback() in ddtrace.ext.errors is now deprecated and will be removed v1.0.

  • Moved ddtrace.ext.priority constants into ddtrace.constants module.

  • Moved ddtrace.ext.system constants into ddtrace.constants module.

Bug Fixes
  • Fixes an issue where all Django function middleware will share the same resource name.
  • Fixed an issue with gevent worker processes that caused them to crash and stop.
  • Fixes exceptions raised when logging during tracer initialization when DD_LOGS_INJECTION is enabled.
  • The ddtrace.utils.wrappers.unwrap function now raises an error if trying to unwrap a non-wrapped object.
  • Only for CI Visibility (pytest integration): Fix extraction of branch in GitLab CI.

v0.54.1

Compare Source

Bug Fixes
  • Fixed an issue with gevent worker processes that caused them to crash and stop.
  • Fixes exceptions raised when logging during tracer initialization when DD_LOGS_INJECTION is enabled.

v0.54.0

Compare Source

Release Notes

v0.54.0

New Features
  • Add automatic unix domain socket detection for traces. The expected path for the socket is /var/run/datadog/apm.socket which if exists, will be used instead of the previous http default, http://localhost:8126/. To be used in conjunction with apm_config.receiver_socket in your datadog.yaml file, or the DD_APM_RECEIVER_SOCKET environment variable set on the Datadog agent.
  • Update the --info command to be easier to read and provide more helpful information.
  • Add support for DD_PROFILING_ENDPOINT_COLLECTION_ENABLED env variable to disable endpoint name collection in profiler.
  • Add rq integration.
  • Tag traces with HTTP headers specified on the DD_TRACE_HEADER_TAGS environment variable. Value must be either comma or space separated. e.g. Host:http.host,User-Agent,http.user_agent or referer:http.referer Content-Type:http.content_type.
Deprecation Notes
  • Deprecate the DATADOG_ENV environment variable in favor of DD_ENV. The use of DD_ENV should follow Unified Service Tagging recommendations.
Bug Fixes
  • pytest: report exception details directly instead of through a RuntimeWarning exception.
  • Fixed the support for Celery workers that fork sub-processes with Python 3.6 and earlier versions.
  • Fix the reporting of the allocated memory and the number of allocations in the profiler.
  • Fixes cases in which the test.status tag of a test span from pytest would be missing because pytest_runtest_makereport hook is not run, like when pytest has an internal error.
  • Pin protobuf version to <3.18 for Python <=3.5 due to support being dropped.
  • Make sure that correct endpoint name collected for profiling.
Other Notes
  • Added runtime metrics status and sampling rules to start-up logs.

v0.53.3

Compare Source

Bug Fixes
  • Fixes an issue where all Django function middleware will share the same resource name.

v0.53.2

Compare Source

Bug Fixes
  • Fix the reporting of the allocated memory and the number of allocations in the profiler.

v0.53.1

Compare Source

Bug Fixes
  • Fixed the support for Celery workers that fork sub-processes with Python 3.6 and earlier versions.
  • Fixes cases in which the test.status tag of a test span from pytest would be missing because pytest_runtest_makereport hook is not run, like when pytest has an internal error.
  • Pin protobuf version to <3.18 for Python <=3.5 due to support being dropped.

v0.53.0

Compare Source

Release Notes

v0.53.0

New Features
  • Tag traces with HTTP headers specified on the DD_TRACE_HEADER_TAGS environment variable. Value must be either comma or space separated. e.g. Host:http.host,User-Agent,http.user_agent or referer:http.referer Content-Type:http.content_type.
  • The gevent tasks are now tracked by the threading lock events
Bug Fixes
  • pytest: report exception details directly instead of through a RuntimeWarning exception.
  • Fixes an issue where a manually set django.request span resource would get overwritten by the integration.
  • Pin setup_requires dependency setuptools_scm[toml]>=4,<6.1 to avoid breaking changes.

v0.52.2

Compare Source

Bug Fixes
  • Pin protobuf version to <3.18 for Python <=3.5 due to support being dropped.

v0.52.1

Compare Source

v0.52.1

Bug Fixes

  • Pin setup_requires dependency setuptools_scm[toml]>=4,<6.1 to avoid breaking changes.

v0.52.0

Compare Source

Release Notes
0.52.0
New Features
  • The ddtrace.Tracer.get_log_correlation_context method has been added to replace ddtrace.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.
  • Add tracing support for the httpx library. Supported versions >=0.14.0.
  • ASGI: store the ASGI span in the scope. The span can be retrieved with the ddtrace.contrib.asgi.span_from_scope function.
  • Submit runtime metrics as distribution metrics instead of gauge metrics.
  • Support flask-caching (>= 1.10.0) with the Flask-Cache tracer.
  • Only for CI Visibility (pytest integration): 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 stored
    • DD_GIT_TAG: The tag of the commit, if it has one
    • DD_GIT_BRANCH: The branch where this commit belongs to
    • DD_GIT_COMMIT_SHA: The commit hash of the current code
    • DD_GIT_COMMIT_MESSAGE: Commit message
    • DD_GIT_COMMIT_AUTHOR_NAME: Commit author name
    • DD_GIT_COMMIT_AUTHOR_EMAIL: Commit author email
    • DD_GIT_COMMIT_AUTHOR_DATE: The commit author date (ISO 8601)
    • DD_GIT_COMMIT_COMMITTER_NAME: Commit committer name
    • DD_GIT_COMMIT_COMMITTER_EMAIL: Commit committer email
    • DD_GIT_COMMIT_COMMITTER_DATE: The commit committer date (ISO 8601)
Bug Fixes
  • ASGI: handle decoding errors when extracting headers for trace propagation.
  • Corrected some typing annotations for PEP 484 compliance
  • Django: add support for version 3.1+ ASGI applications. A different codepath is taken for requests starting in Django 3.1 which led to the top level span not being generated for requests. The fix introduces automatic installation of the ASGI middleware to trace Django requests.
  • dogpile.cache: handle both kwargs and args in the wrapper functions (using only kwargs would result in an IndexError).
  • Fixes an issue with the Django integration where if the urlconf changes 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.
  • Fixes error with tagging non-string Flask view args.
  • werkzeug.exceptions.NotFound 404 errors are no longer raised and logged as a server error in the Flask integration.
  • Fixes type hinting for **patch_modules parameter for patch/patch_all functions.
  • Fixes an issue when using the pytest plugin with doctest which raises an AttributeError on DoctestItem.
  • Fixes a bug in the pytest plugin where xfail test cases in a test file with a module-wide skip raises attribute errors and are marked as xfail rather than skipped.
  • Fixed the handling of sanic endpoint paths with non-string arguments.
  • opentracer: don't override default tracing config for the ENABLED, AGENT_HOSTNAME,AGENT_HTTPS or AGENT_PORT settings.

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 these updates again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/ddtrace-0.x branch 2 times, most recently from 07736f0 to 3797f07 Compare September 9, 2021 15:55
@renovate renovate bot changed the title Update dependency ddtrace to ^0.52.0 Update dependency ddtrace to ^0.53.0 Sep 9, 2021
@renovate renovate bot force-pushed the renovate/ddtrace-0.x branch from 3797f07 to b86d0be Compare October 7, 2021 21:05
@renovate renovate bot changed the title Update dependency ddtrace to ^0.53.0 Update dependency ddtrace to ^0.54.0 Oct 7, 2021
@renovate renovate bot changed the title Update dependency ddtrace to ^0.54.0 Update dependency ddtrace to v0.57.3 Feb 2, 2022
@renovate renovate bot force-pushed the renovate/ddtrace-0.x branch from b86d0be to 11efd8a Compare February 2, 2022 11:25
@toddbirchard toddbirchard merged commit aad5df0 into master Feb 2, 2022
@toddbirchard toddbirchard deleted the renovate/ddtrace-0.x branch February 2, 2022 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants