pypi sentry-sdk 2.50.0

17 hours ago

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

Don't miss a new sentry-sdk release

NewReleases is sending notifications on new releases.