3.0.0rc2
Pre-release
Pre-release
Upgrade Notes
-
LLM Observability
langchain: Removes thelangchain.tokens.total_costspan metric for OpenAI calls. For continued cost estimation of OpenAI calls, enable LLM Observability.langchain: Removes prompt-completion log sampling from the LangChain integration. To continue logging prompt completions, enable LLM Observability.langchain: Removes integration metrics from the LangChain integration. To continue tracking operational metrics from the OpenAI integration, enable LLM Observability or use trace metrics instead.openai: Removes prompt-completion log sampling from the OpenAI integration. To continue logging prompt completions, enable LLM Observability.openai: Removes integration metrics from the OpenAI integration. To continue tracking operational metrics from the OpenAI integration, enable LLM Observability or use trace metrics instead.
-
Tracing
- Drops support for multiple Tracer instances in the same process. Use
ddtrace.trace.tracerto access the global tracer instance. - Drops support for multiple tracer instances,
ddtrace.trace.Tracercan not be reinitialized. - Removes deprecated parameters from
Tracer.configure(...)method and removes theTracer.samplerattribute. - configurations: Drops support for deprecated tracing configurations. The following configurations are no longer supported:
DD_TRACE_SAMPLE_RATE, useDD_TRACE_SAMPLING_RULESinstead.DD_TRACE_API_VERSION=v0.3, the defaultv0.5version is used instead.DD_ANALYTICS_ENABLED, Datadog Analytics is no longer supported.DD_TRACE_ANALYTICS_ENABLED, Datadog Analytics is no longer supported.DD_HTTP_CLIENT_TAG_QUERY_STRING,DD_TRACE_HTTP_CLIENT_TAG_QUERY_STRINGshould be used instead.DD_TRACE_SPAN_AGGREGATOR_RLOCK, disabling the span aggregator rlock is no longer supported.
- configurations: Drops support for configuring
DD_TRACE_METHODSwith the[]notation. EnsureDD_TRACE_METHODSuse the:notation instead. - opentracing: Removes the deprecated
ddtracerparameter fromddtrace.opentracer.tracer.Tracer(). - sampling: Drops support for configuring sampling rules using functions and regex in the
ddtrace.tracer.sampler.rules[].choose_matcher(...)method and removes thetimestamp_nsparameter fromddtrace.internal.rate_limiter.RateLimiter.is_allowed(). - span: Removes the deprecated
Span.sampledproperty.
- Drops support for multiple Tracer instances in the same process. Use
New Features
- Tracing
valkey: Adds automatic instrumentation of the Valkey package. Thank you AhmadMasry!
Bug Fixes
- Tracing
aiohttp: Adds the environment variableDD_AIOHTTP_CLIENT_DISABLE_STREAM_TIMING_FOR_MEM_LEAKto address a potential memory leak in theaiohttpintegration. When set to true, this flag may cause streamed response span timing to be inaccurate. The flag defaults to false.- logging: Resolves an an unneeded info log being logged on process exit due to a forksafe hook being unregistered that was never registered to begin with.