Skip to content

chore(deps): bump ddtrace from 4.16.4 to 4.17.0 - #765

Merged
openhands-agent merged 2 commits into
mainfrom
dependabot/pip/ddtrace-4.17.0
Nov 16, 2026
Merged

openhands-agent merged 2 commits into
mainfrom
dependabot/pip/ddtrace-4.17.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps ddtrace from 4.16.4 to 4.17.0.

Release notes

Sourced from ddtrace's releases.

4.17.0

Estimated end-of-life date, accurate to within three months: 05-2027 See the support level definitions for more information.

Upgrade Notes

  • CI Visibility
    • Removes the legacy pytest plugin. The DD_PYTEST_USE_NEW_PLUGIN and DD_PYTEST_USE_NEW_PLUGIN_BETA environment variables no longer have any effect; the pytest plugin is always used. Remove these environment variables from your configuration to silence the deprecation warning emitted while they are set.
  • dd-trace-py 4.17 adds support for Python 3.15. Most of the library is tested and ready on 3.15. Some products and integrations are not yet validated on Python 3.15. You can track progress in #17809.

New Features

  • AAP
    • Adds Server-Side Request Forgery (SSRF) exploit prevention and downstream request analysis for outgoing requests made with the aiohttp client.
    • Adds threat detection and request blocking for aiohttp web applications traced with ddtrace.contrib.aiohttp.trace_app. Request bodies sent with chunked transfer encoding or compression, or larger than the application's client_max_size, are not inspected.
    • Adds SQL injection protection for byte queries, including bytearray and memoryview queries, in SQL integrations and Django MySQL backends. Queries are inspected using the connection's encoding, with UTF-8 inspection for PostgreSQL SQL_ASCII connections.
  • AI Guard
    • Adds an optional tags argument to AIGuardClient.evaluate(). Each key/value pair in the dictionary is set as a tag on the AI Guard span, so evaluations can be filtered by custom fields in queries, e.g. client.evaluate(messages, tags={"tenant": "acme"}). Keys starting with ai_guard. are reserved and ignored.
    • Introduces filters and callbacks through middlewares in ddtrace.aiguard.middleware, to control which requests AI Guard evaluates and to run custom logic around each evaluation. See the AI Guard documentation for how to use them.
  • algoliasearch
    • This introduces tracing support for algoliasearch 3.x.
  • elevenlabs
    • Adds LLM Observability support for Python Agents conversations over WebSocket, including conversation audio, transcripts, and client tools. Set DD_TRACE_ELEVENLABS_ENABLED=false to disable automatic instrumentation. For improved user-speaking colors, enable vad_score in the agent's Advanced settings under Client Events. Audio playback remains available without this optional event.
  • pymongo
    • Adds support for PyMongo v4.18
    • Adds Python 3.15 test coverage for current PyMongo releases.
  • LLM Observability
    • The agent version set through LLMObs.agent(version=...), @agent(version=...), LLMObs.annotate(agent={"version": ...}) or LLMObs.annotation_context(agent={"version": ...}) is now also reported as an agent_version tag on child spans of that agent within the same process.
    • The root LLMObs span now includes http.client_ip and network.client.ip tags when AppSec or DD_TRACE_CLIENT_IP_ENABLED is active and the web framework instruments the request. No additional LLMObs configuration is required.
    • add Amazon Nova 2 Sonic support for the asynchronous AWS SDK for Bedrock Runtime. Conversations include per-turn traces, transcripts, text and audio token usage, tool calls, and playable audio, with speech phases for conversation playback and response-latency measurement.
    • The OpenAI integration now reports ephemeral_30m_input_tokens and ephemeral_12h_input_tokens metrics for Responses API calls.
    • Adds support for tracing OpenAI Decisions API calls (client.decisions.create), capturing the input, questions, answers, and token usage.
    • Adds LLMObs.routing_context(), a context manager that sends LLM Observability spans and evaluation metrics created within it to other Datadog organizations instead of the configured one. Pass dd_api_key (and optionally dd_site) to route to one organization, or targets to send the same data to several. Routed data is sent directly to the LLM Observability intake; APM spans are not routed.
    • The OpenAI and Anthropic integrations now track server-side tool usage on LLM spans. This includes web_search_count for OpenAI Responses API and Anthropic web searches, and storage_search_count for OpenAI file searches.
    • Adds support for submitting LLM Observability spans for TypeSafe system_one calls, capturing the request and response bodies and token usage. Images are recorded by reference, not by content.
    • OpenAI Decisions API spans and typesafe-sdk System One spans are now tagged with decision_provider (openai and typesafe respectively) to identify decision model spans.
  • AWS Bedrock Runtime
    • Adds reported input and output text token counts to Nova Sonic 2 spans in LLM Observability alongside audio token counts.
  • OpenAI
    • Adds reported audio, text, image, and cached token counts to Realtime spans in LLM Observability for detailed token breakdowns.
  • mcp
    • LLM Observability MCP server spans, including tool call spans, now include the calling client's self-reported name, title, and version as the mcp_client_name, mcp_client_title, and mcp_client_version tags. Tool call spans are not tagged for servers on mcp<2 using stateless streamable HTTP, where the client's identity is unavailable.
    • Adds support for mcp 2.x, including clients and servers using the stateless 2026-07-28 MCP protocol. Previously, no APM or Agent Observability spans were created for MCP clients or servers when mcp 2.x was installed.
  • tracing
    • Adds DD_TRACE_HTTP_CLIENT_ERROR_STATUSES to configure which HTTP client response status codes mark a span as an error when DD_TRACE_OTEL_SEMANTICS_ENABLED=true. When it is not set, client status codes of 400 and above are errors.
    • Adds support for OpenTelemetry HTTP semantic conventions on HTTP client spans, enabled with DD_TRACE_OTEL_SEMANTICS_ENABLED=true. When enabled, client spans use OpenTelemetry attribute names and low-cardinality resource names; the default remains the existing Datadog behavior.
    • Adds support for OpenTelemetry HTTP semantic conventions on HTTP server spans when DD_TRACE_OTEL_SEMANTICS_ENABLED=true.
    • Adds shared OpenTelemetry HTTP span behavior for upcoming client and server integrations, enabled with DD_TRACE_OTEL_SEMANTICS_ENABLED. See the OpenTelemetry API docs for details.
    • Adds gRPC support for OTLP trace export. Set OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc or OTEL_EXPORTER_OTLP_PROTOCOL=grpc to use gRPC; http/protobuf remains the default for traces. Applications that use the global gRPC setting but require HTTP trace export must set OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf. gRPC trace export currently supports plaintext http:// endpoints only.
  • profiling

... (truncated)

Commits
  • 4b9b6f7 chore: set version to 4.17.0 (#21713)
  • 8d70e7e fix(tracing): drain retired MicroVM writers outside the lock [backport 4.17] ...
  • 885f485 fix(tracer): drop trace state from before a MicroVM identity refresh [backpor...
  • e576640 fix(tracing): refine baggage header parsing [backport 4.17] (#21607)
  • 70f7c72 fix(internal): scan distributions inline in a uWSGI master [backport 4.17] (#...
  • 366a747 fix(profiling): keep stack sampler state alive through uWSGI exit [backport 4...
  • 0c3660b fix(profiling): bump libdatadog to v46.1.2 [backport 4.17] (#21574)
  • 3aadfbd chore: bump version to 4.17.0rc2 (#21550)
  • f6d0ba1 fix(tracing): require explicit opt-in for OTLP trace metrics [backport 4.17] ...
  • 30b0497 feat(ci_visibility): add git metadata upload and unshallow kill switches [bac...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ddtrace](https://github.com/DataDog/dd-trace-py) from 4.16.4 to 4.17.0.
- [Release notes](https://github.com/DataDog/dd-trace-py/releases)
- [Changelog](https://github.com/DataDog/dd-trace-py/blob/main/CHANGELOG.md)
- [Commits](DataDog/dd-trace-py@v4.16.4...v4.17.0)

---
updated-dependencies:
- dependency-name: ddtrace
  dependency-version: 4.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 16, 2026
@github-actions github-actions Bot added the type: chore Maintenance / chores label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Coverage

Warning

Your comment is too long (maximum is 65536 characters), so the coverage report was not added. See the job log for how to reduce it.

@all-hands-bot

Copy link
Copy Markdown
Contributor

🤖 OpenHands is fixing the failing CI on this dependabot version bump.

Head commit: 0188e1994600fce5b07204bf509f88370a76fe2b
View the conversation: https://oss-agent-canvas-backup.ngrok.dev/conversations/b2b307b8-1366-4297-9115-17ba8b0b8304

This comment was posted by an AI agent (OpenHands).

Dependabot bumped ddtrace in pyproject.toml but uv.lock still pinned
4.16.4, so the image build failed at:

  uv sync --locked ...
  error: The lockfile at `uv.lock` needs to be updated, but `--locked` was provided.

Regenerate uv.lock (ddtrace 4.16.4 -> 4.17.0, ddtrace-internal
0.1.0 -> 0.2.0) so the locked sync used by containers/Dockerfile
succeeds.

Co-authored-by: openhands <openhands@all-hands.dev>

@openhands-agent openhands-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor ddtrace bump (4.16.4 → 4.17.0) with a lockfile-only diff and all checks passing. The only upgrade note removes the legacy CI Visibility pytest plugin, which this service does not configure. Risk 3/10.

Approved by an automated OpenHands agent.

@openhands-agent
openhands-agent merged commit a4c2467 into main Nov 16, 2026
10 checks passed
@dependabot
dependabot Bot deleted the dependabot/pip/ddtrace-4.17.0 branch November 16, 2026 14:21
@openhands-release-bot

Copy link
Copy Markdown
Contributor

🚀 Released in 1.33.0.

@openhands-release-bot openhands-release-bot Bot added the released: 1.33.0 Shipped in 1.33.0 label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code released: 1.33.0 Shipped in 1.33.0 type: chore Maintenance / chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants