v4.9.0rc2
Breaking Changes📦 datadog-sdkView on GitHub →
⚠ 1 breaking✨ 2 features🐛 2 fixes🔧 3 symbols
Summary
This release introduces LLM Observability cost tagging and a configuration to exclude modules from lock profiling. It also fixes a startup deadlock related to Snowflake and resolves an issue with the lock profiler under gevent.
⚠️ Breaking Changes
- Azure CosmosDB spans no longer include http.status_code tags; they are replaced by the db.response.status_code metric. Users relying on http.status_code tag on cosmosdb.query spans from ddtrace v4.8.0 must update their queries to use the new metric.
Migration Steps
- If you rely on the `http.status_code` tag on Azure CosmosDB query spans, update your monitoring queries to use the `db.response.status_code` metric instead.
✨ New Features
- LLM Observability: Added optional `cost_tags` argument to `LLMObs.annotate()` and `LLMObs.annotation_context()` to attach existing tag keys to cost and token metrics.
- Profiling: Added `DD_PROFILING_LOCK_EXCLUDE_MODULES` configuration to skip lock profiling for specified framework-internal module prefixes.
🐛 Bug Fixes
- Fixed a startup deadlock when using `snowflake-connector-python >= 4.4.0` with `DD_TRACE_SNOWFLAKE_ENABLED=true`.
- Fixed an issue where the lock profiler silently stopped capturing lock events when running under `ddtrace-run` with `gevent` installed.