Skip to content

Releases: DataDog/dd-trace-py

2.15.0rc3

23 Oct 20:51
c060a72
Compare
Choose a tag to compare
2.15.0rc3 Pre-release
Pre-release

Bug Fixes

  • Tracing
    • elasticsearch: Resolves an issue where span tags were not fully populated on "sampled" spans, causing metric dimensions to be incorrect when spans were prematurely marked as sampled, including resource_name.

2.15.0rc2

21 Oct 17:31
636e498
Compare
Choose a tag to compare
2.15.0rc2 Pre-release
Pre-release

Bug Fixes

  • Tracing
    • Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.

2.14.4

21 Oct 16:31
b5ffe01
Compare
Choose a tag to compare

Bug Fixes

  • Code Security
    • Ensures IAST propagation does not raise side effects related to re.finditer.
  • LLM Observability
    • botocore: Fixes bedrock model and model provider interpretation from modelId when using cross-region inference.
  • Profiling
    • Fixes an issue where stack v2 couldn't be enabled as pthread was not properly linked on some debian based images for aarch64 architecture.
  • Tracing
    • Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.

2.13.2

21 Oct 16:29
b9e96d7
Compare
Choose a tag to compare

Bug Fixes

  • Code Security
    • Ensures IAST propagation does not raise side effects related to re.finditer.
  • LLM Observability
    • botocore: Fixes bedrock model and model provider interpretation from modelId when using cross-region inference.
  • Profiling
    • Fixes an issue where stack v2 couldn't be enabled as pthread was not properly linked on some debian based images for aarch64 architecture.
  • Tracing
    • Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.

2.12.4

21 Oct 21:13
2ddc6f5
Compare
Choose a tag to compare

Bug Fixes

  • Profiling
    • Fixes an issue where stack v2 couldn't be enabled as pthread was not properly linked on some debian based images for aarch64 architecture.
  • Tracing
    • Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.

2.11.8

21 Oct 21:15
dc8591a
Compare
Choose a tag to compare

Bug Fixes

  • Tracing
    • Resolves the issue where tracer flares would not be generated if unexpected types were received in the AGENT_CONFIG remote configuration product.

2.15.0rc1

16 Oct 16:24
c131afc
Compare
Choose a tag to compare
2.15.0rc1 Pre-release
Pre-release

Deprecation Notes

  • Tracing
    • The following attributes are now private and should not be accessed directly. The corresponding environment variables should be used instead.
      • Use DD_TRACE_HTTP_CLIENT_TAG_QUERY_STRING instead of ddtrace.config.http_tag_query_string
      • Use DD_TRACE_HEADER_TAGS instead of ddtrace.config.trace_http_header_tags
      • Use DD_TRACE_REPORT_HOSTNAME instead of ddtrace.config.report_hostname
      • Use DD_TRACE_HEALTH_METRICS_ENABLED instead of ddtrace.config.health_metrics_enabled
      • Use DD_TRACE_ANALYTICS_ENABLED instead of ddtrace.config.analytics_enabled
      • Use DD_TRACE_CLIENT_IP_HEADER instead of ddtrace.config.client_ip_header
      • Use DD_TRACE_CLIENT_IP_ENABLED instead of ddtrace.config.retrieve_client_ip
      • Use DD_TRACE_PROPAGATION_HTTP_BAGGAGE_ENABLED instead of ddtrace.config.propagation_http_baggage_enabled
      • Set DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP to an empty string instead of setting ddtrace.config.global_query_string_obfuscation_disabled to True (default value is False)
      • Use DD_TRACE_METHODS instead of ddtrace.config.trace_methods
      • Use DD_CIVISIBILITY_LOG_LEVEL instead of ddtrace.config.ci_visibility_log_level

New Features

  • Tracing
    • botocore: Adds span pointers for successful DynamoDB DeleteItem spans.
    • botocore: Adds span pointers for successful DynamoDB PutItem spans. Table Primary Keys need to be provided with the ddtrace.config.botocore.dynamodb_primary_key_names_for_tables option or the DD_BOTOCORE_DYNAMODB_TABLE_PRIMARY_KEYS environment variable.
    • botocore: Adds span pointers for successful DynamoDB UpdateItem spans.

Bug Fixes

  • Code Security
    • Resolves an issue where partial matches on function names we aimed to patch were being patched instead of full matches on them.
    • Ensures IAST propagation does not raise side effects related to re.finditer.
  • Profiling
    • Fixes an issue where stack v2 couldn't be enabled as pthread was not properly linked on some debian based images for aarch64 architecture.
  • Tracing
    • botocore: Fixes bedrock model and model provider interpretation from modelId when using cross-region inference.
    • Ensures that http.url span tag contains the full query string when DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP is set to an empty string.

Other Changes

  • Code Security
    • Update default security rules to 1.13.1. This enable Exploit Prevention powered by RASP for LFI and Command Injection by default when ASM is enabled.

2.11.7

16 Oct 18:26
29c24e1
Compare
Choose a tag to compare

Bug Fixes

  • LLM Observability
    • Fixes an issue where the OpenAI and LangChain integrations would still submit integration metrics even in agentless mode. Integration metrics are now disabled if using agentless mode via LLMObs.enable(agentless_enabled=True) or setting DD_LLMOBS_AGENTLESS_ENABLED=1.
  • Code Security
    • Resolves an issue where exploit prevention was not properly blocking requests with custom redirection actions.
    • Resolves an issue where partial matches on function names we aimed to patch were being patched instead of full matches on them.
    • Ensures the Initializer object is always reset and freed before the Python runtime.
  • Profiling
    • Improves the error message when the native exporter fails to load and stops profiling from starting if ddtrace is also being injected.
    • Fixes endpoint profiling when using libdatadog exporter, either with DD_PROFILING_EXPORT_LIBDD_ENABLED or DD_PROFILING_TIMELINE_ENABLED.

2.14.3

16 Oct 18:25
70a2ee1
Compare
Choose a tag to compare

Bug Fixes

  • Code Security (IAST)
    • Ensures that only the IAST propagation context is cleared instead of all contexts, which could otherwise cause propagation loss in multithreaded applications. Additionally, it improves validations in both the Processor and Vulnerability Reporter, depending on whether IAST is active or not.
  • Profiling
    • Fixes endpoint profiling for stack v2, when DD_PROFILING_STACK_V2_ENABLED is set.
  • Tracing
    • Ensures DD_TRACE_RATE_LIMIT environment variable is only applied to spans for which tracer sampling is configured. For spans not matching sampling rules default rate limits should be applied by the Datadog Agent.

2.13.1

04 Oct 13:58
176e607
Compare
Choose a tag to compare

Bug Fixes

  • Code Security (IAST)

    • Always report a telemetry log error when an IAST propagation error raises, regardless of whether the _DD_IAST_DEBUG environment variable is enabled or not.
    • Code Security: Fixes potential memory leak on IAST exception handling.
  • Profiling:

    • Updates filenames for all files with platform-dependent code to reflect the platform they are for. This fixes issues where the wrong file would be used on a given platform.
    • Enables endpoint profiling for stack v2, DD_PROFILING_STACK_V2_ENABLED is set.
    • Fixes endpoint profiling when using libdatadog exporter, either with DD_PROFILING_EXPORT_LIBDD_ENABLED or DD_PROFILING_TIMELINE_ENABLED.
    • Enables code provenance when using libdatadog exporter, DD_PROFILING_EXPORT_LIBDD_ENABLED, DD_PROFILING_STACK_V2_ENABLED, or DD_PROFILING_TIMELINE_ENABLED.
    • Fixes an issue where the flamegraph was upside down for stack v2 when enabling DD_PROFILING_STACK_V2_ENABLED.
  • Tracing

    • Fixes an issue where celery.apply spans didn't close if the after_task_publish or task_postrun signals didn't get sent when using apply_async, which can happen if there is an internal exception during the handling of the task. This update also marks the span as an error if an exception occurs.
    • Fixes an issue where celery.apply spans using task_protocol 1 didn't close by improving the check for the task id in the body.
    • Removes a reference cycle that caused unnecessary garbage collection for top-level spans.