Skip to content

Releases: getsentry/sentry-python

2.52.0

04 Feb 15:04

Choose a tag to compare

New Features ✨

Other

Bug Fixes πŸ›

Google Genai

Mcp

Other

Internal Changes πŸ”§

Fastmcp

Mcp

Other

Other

2.52.0a2

02 Feb 12:53

Choose a tag to compare

2.52.0a2 Pre-release
Pre-release

New Features ✨

Span Streaming

  • feat(span-streaming): Add spans to telemetry pipeline, add span name and attributes (3) by @sentrivana in #5399
  • feat(span-streaming): Add span batcher (2) by @sentrivana in #5398

Internal Changes πŸ”§

Other

2.52.0a1

02 Feb 08:58

Choose a tag to compare

2.52.0a1 Pre-release
Pre-release

New Features ✨

Openai

Other

Bug Fixes πŸ›

  • fix(ai): Keep single content input message by @alexander-alderman-webb in #5345
  • fix(arq): handle settings_cls passed as keyword argument by @nc9 in #5393
  • fix(dramatiq): cleanup isolated scope and transaction when message is skipped by @frankie567 in #5346
  • fix(google-genai): deactivate google genai when langchain is used by @shellmayr in #5389

Internal Changes πŸ”§

Other

2.51.0

28 Jan 10:30

Choose a tag to compare

New Features ✨

Openai

Openai Agents

Other

Bug Fixes πŸ›

Internal Changes πŸ”§

2.51.0a1

28 Jan 09:41

Choose a tag to compare

2.51.0a1 Pre-release
Pre-release

New Features ✨

Integrations

  • feat(integrations): OpenAI/OpenAI Agents detect and report the time to first token metric (TTFT) as gen_ai.response.time_to_first_token by @constantinius in #5348
  • feat(integrations): openai-agents streaming support by @constantinius in #5291

Other

Internal Changes πŸ”§

Other

2.50.0

20 Jan 12:53
27b0bfd

Choose a tag to compare

New Features ✨

Ai

Other

  • feat(asyncio): Add on-demand way to enable AsyncioIntegration by @sentrivana in #5288

    You can now enable the AsyncioIntegration on demand, after calling sentry_sdk.init(). This is useful in scenarios where you don't have
    the event loop running early on, or when you need to instrument multiple event loops.

import sentry_sdk
from sentry_sdk.integrations.asyncio import enable_asyncio_integration

# Initializing the SDK as early as possible, when there is no event loop yet
sentry_sdk.init(
    ...
    # No AsyncioIntegration in explicitly provided `integrations`
)

async def main():
    enable_asyncio_integration()  # instruments the current event loop
    # ...your code...

Bug Fixes πŸ›

Integrations

  • fix(integrations): google genai report image inputs by @constantinius in #5337
  • fix(integrations): google-genai: reworked gen_ai.request.messages extraction from parameters by @constantinius in #5275
  • fix(integrations): pydantic-ai: properly format binary input message parts to be conformant with the gen_ai.request.messages structure by @constantinius in #5251
  • fix(integrations): Anthropic: add content transformation for images and documents by @constantinius in #5276
  • fix(integrations): langchain add multimodal content transformation functions for images, audio, and files by @constantinius in #5278

Litellm

Other

Documentation πŸ“š

Internal Changes πŸ”§

Fastmcp

Release

  • ci(release): Bump Craft version to fix issues by @BYK in #5305
  • ci(release): Switch from action-prepare-release to Craft by @BYK in #5290

Other

2.49.0

08 Jan 09:56

Choose a tag to compare

New Features ✨

Bug Fixes πŸ›

Documentation πŸ“š

Internal Changes πŸ”§

2.48.0

16 Dec 14:55

Choose a tag to compare

Middleware spans are now disabled by default in Django, Starlette and FastAPI integrations. Set the middleware_spans integration-level
option to capture individual spans per middleware layer. To record Django middleware spans, for example, configure as follows

  import sentry_sdk
  from sentry_sdk.integrations.django import DjangoIntegration

  sentry_sdk.init(
      dsn="<your-dsn>",
      integrations=[
          DjangoIntegration(middleware_spans=True),
      ],
  )

New Features ✨

Langgraph

OTLP

  • feat(otlp): Optionally capture exceptions from otel's Span.record_exception api by @sl0thentr0py in #5235
  • feat(otlp): Implement new Propagator.inject for OTLPIntegration by @sl0thentr0py in #5221

Bug Fixes πŸ›

Integrations

Internal Changes πŸ”§

2.47.0

03 Dec 14:06
a1e3004

Choose a tag to compare

Bug Fixes πŸ›

New Features ✨

Deprecations

Build / dependencies / internal πŸ”§

2.46.0

24 Nov 09:34
d3375bc

Choose a tag to compare

Various fixes & improvements