Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 14, 2025

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) 2.19.2 -> 2.48.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v2.48.0

Compare Source

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
Bug Fixes 🐛
Integrations
Internal Changes 🔧

v2.47.0

Compare Source

Bug Fixes 🐛
New Features ✨
Deprecations
Build / dependencies / internal 🔧

v2.46.0

Compare Source

Various fixes & improvements

v2.45.0

Compare Source

Various fixes & improvements
  • OTLPIntegration (#​4877) by @​sl0thentr0py

    Enable the new OTLP integration with the code snippet below, and your OpenTelemetry instrumentation will be automatically sent to Sentry's OTLP ingestion endpoint.

      import sentry_sdk
      from sentry_sdk.integrations.otlp import OTLPIntegration
    
      sentry_sdk.init(
          dsn="<your-dsn>",
          # Add data like inputs and responses;
          # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
          send_default_pii=True,
          integrations=[
              OTLPIntegration(),
          ],
      )

    Under the hood, this will setup:

    • A SpanExporter that will automatically set up the OTLP ingestion endpoint from your DSN
    • A Propagator that ensures Distributed Tracing works
    • Trace/Span linking for all other Sentry events such as Errors, Logs, Crons and Metrics

    If you were using the SentrySpanProcessor before, we recommend migrating over to OTLPIntegration since it's a much simpler setup.

  • feat(integrations): implement context management for invoke_agent spans (#​5089) by @​constantinius

  • feat(loguru): Capture extra (#​5096) by @​sentrivana

  • feat: Attach server.address to metrics (#​5113) by @​alexander-alderman-webb

  • fix: Cast message and detail attributes before appending exception notes (#​5114) by @​alexander-alderman-webb

  • fix(integrations): ensure that GEN_AI_AGENT_NAME is properly set for GEN_AI spans under an invoke_agent span (#​5030) by @​constantinius

  • fix(logs): Update sentry.origin (#​5112) by @​sentrivana

  • chore: Deprecate description truncation option for Redis spans (#​5073) by @​alexander-alderman-webb

  • chore: Deprecate max_spans LangChain parameter (#​5074) by @​alexander-alderman-webb

  • chore(toxgen): Check availability of pip and add detail to exceptions (#​5076) by @​alexander-alderman-webb

  • chore: add MCP SDK Pydantic AI and OpenAI Agents to the list of auto enabled integrations (#​5111) by @​constantinius

  • test: add tests for either FastMCP implementation (#​5075) by @​constantinius

  • fix(ci): Re-enable skipped tests (#​5104) by @​sentrivana

  • ci: 🤖 Update test matrix with new releases (11/17) (#​5110) by @​github-actions

  • ci: Force coverage core ctrace for 3.14 (#​5108) by @​sl0thentr0py

v2.44.0

Compare Source

Various fixes & improvements

v2.43.0

Compare Source

Various fixes & improvements
  • Pydantic AI integration (#​4906) by @​constantinius

    Enable the new Pydantic AI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:

    import sentry_sdk
    from sentry_sdk.integrations.pydantic_ai import PydanticAIIntegration
    sentry_sdk.init(
        dsn="<your-dsn>",
        # Set traces_sample_rate to 1.0 to capture 100%
        # of transactions for tracing.
        traces_sample_rate=1.0,
        # Add data like inputs and responses;
        # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
        send_default_pii=True,
        integrations=[
            PydanticAIIntegration(),
        ],
    )
  • MCP Python SDK (#​4964) by @​constantinius

    Enable the new Python MCP integration with the code snippet below:

    import sentry_sdk
    from sentry_sdk.integrations.mcp import MCPIntegration
    sentry_sdk.init(
        dsn="<your-dsn>",
        # Set traces_sample_rate to 1.0 to capture 100%
        # of transactions for tracing.
        traces_sample_rate=1.0,
        # Add data like inputs and responses;
        # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
        send_default_pii=True,
        integrations=[
            MCPIntegration(),
        ],
    )
  • fix(strawberry): Remove autodetection, always use sync extension (#​4984) by @​sentrivana

    Previously, StrawberryIntegration would try to guess whether it should install the sync or async version of itself. This auto-detection was very brittle and could lead to us auto-enabling async code in a sync context. With this change, StrawberryIntegration remains an auto-enabling integration, but it'll enable the sync version by default. If you want to enable the async version, pass the option explicitly:

    sentry_sdk.init(
        # ...
        integrations=[
            StrawberryIntegration(
                async_execution=True
            ),
        ],
    )
  • fix(google-genai): Set agent name (#​5038) by @​constantinius

  • fix(integrations): hooking into error tracing function to find out if an execute tool span should be set to error (#​4986) by @​constantinius

  • fix(django): Improve logic for classifying cache hits and misses (#​5029) by @​alexander-alderman-webb

  • chore(metrics): Rename _metrics to metrics (#​5035) by @​alexander-alderman-webb

  • fix(tracemetrics): Bump metric buffer size to 1k (#​5031) by @​k-fish

  • fix startlette deprecation warning (#​5034) by @​DeoLeung

  • build(deps): bump actions/upload-artifact from 4 to 5 (#​5032) by @​dependabot

  • fix(ai): truncate messages for google genai (#​4992) by @​shellmayr

  • fix(ai): add message truncation to litellm (#​4973) by @​shellmayr

  • feat(langchain): Support v1 (#​4874) by @​sentrivana

  • ci: Run common test suite on Python 3.14t (#​4969) by @​alexander-alderman-webb

  • feat: Officially support 3.14 & run integration tests on 3.14 (#​4974) by @​sentrivana

  • Make logger template format safer to missing kwargs (#​4981) by @​sl0thentr0py

  • tests(huggingface): Support 1.0.0rc7 (#​4979) by @​alexander-alderman-webb

  • feat: Enable HTTP request code origin by default (#​4967) by @​alexander-alderman-webb

  • ci: Run common test suite on Python 3.14 (#​4896) by @​sentrivana

v2.42.1

Compare Source

Various fixes & improvements

v2.42.0

Compare Source

Various fixes & improvements
  • feat: Add source information for slow outgoing HTTP requests (#​4902) by @​alexander-alderman-webb

  • tests: Update tox (#​4913) by @​sentrivana

  • fix(Ray): Retain the original function name when patching Ray tasks (#​4858) by @​svartalf

  • feat(ai): Add python-genai integration (#​4891) by @​vgrozdanic
    Enable the new Google GenAI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:

    import sentry_sdk
    from sentry_sdk.integrations.google_genai import GoogleGenAIIntegration
    sentry_sdk.init(
        dsn="<your-dsn>",
        # Set traces_sample_rate to 1.0 to capture 100%
        # of transactions for tracing.
        traces_sample_rate=1.0,
        # Add data like inputs and responses;
        # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
        send_default_pii=True,
        integrations=[
            GoogleGenAIIntegration(),
        ],
    )

v2.41.0

Compare Source

Various fixes & improvements
  • feat: Add concurrent.futures patch to threading integration (#​4770) by @​alexander-alderman-webb

    The SDK now makes sure to automatically preserve span relationships when using ThreadPoolExecutor.

  • chore: Remove old metrics code (#​4899) by @​sentrivana

    Removed all code related to the deprecated experimental metrics feature (sentry_sdk.metrics).

  • ref: Remove "experimental" from log function name (#​4901) by @​sentrivana

  • fix(ai): Add mapping for gen_ai message roles (#​4884) by @​shellmayr

  • feat(metrics): Add trace metrics behind an experiments flag (#​4898) by @​k-fish

v2.40.0

Compare Source

Various fixes & improvements
  • Add LiteLLM integration (#​4864) by @​constantinius
    Once you've enabled the new LiteLLM integration, you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests:

    import sentry_sdk
    from sentry_sdk.integrations.litellm import LiteLLMIntegration
    sentry_sdk.init(
        dsn="<your-dsn>",
        # Set traces_sample_rate to 1.0 to capture 100%
        # of transactions for tracing.
        traces_sample_rate=1.0,
        # Add data like inputs and responses;
        # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
        send_default_pii=True,
        integrations=[
            LiteLLMIntegration(),
        ],
    )
  • Litestar: Copy request info to prevent cookies mutation (#​4883) by @​alexander-alderman-webb

  • Add tracing to DramatiqIntegration (#​4571) by @​Igreh

  • Also emit spans for MCP tool calls done by the LLM (#​4875) by @​constantinius

  • Option to not trace HTTP requests based on status codes (#​4869) by @​alexander-alderman-webb
    You can now disable transactions for incoming requests with specific HTTP status codes. The new trace_ignore_status_codes option accepts a set of status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled.

    import sentry_sdk
    
    sentry_sdk.init(
        trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
    )
  • Move _set_agent_data call to ai_client_span function (#​4876) by @​constantinius

  • Add script to determine lowest supported versions (#​4867) by @​sentrivana

  • Update CONTRIBUTING.md (#​4870) by @​sentrivana

v2.39.0

Compare Source

Various fixes & improvements

Note: This is my last release. So long, and thanks for all the fish! by @​antonpirker

v2.38.0

Compare Source

Various fixes & improvements

v2.37.1

Compare Source

Various fixes & improvements

v2.37.0

Compare Source

v2.36.0

Compare Source

Various fixes & improvements
import sentry_sdk
from sentry_sdk.integrations.unraisablehook import UnraisablehookIntegration

sentry_sdk.init(
    dsn="...",
    integrations=[
        UnraisablehookIntegration(),
    ]
)

v2.35.2

Compare Source

Various fixes & improvements

v2.35.1

Compare Source

Various fixes & improvements

v2.35.0

Compare Source

Various fixes & improvements

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 8fd370c to 46506a5 Compare February 12, 2025 11:07
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.20.0 Update dependency sentry-sdk to v2.21.0 Feb 12, 2025
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.21.0 Update dependency sentry-sdk to v2.22.0 Feb 17, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 46506a5 to 3712f40 Compare February 17, 2025 16:03
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 3712f40 to 681a3a5 Compare March 17, 2025 12:15
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.22.0 Update dependency sentry-sdk to v2.23.0 Mar 17, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 681a3a5 to d674e82 Compare March 17, 2025 17:52
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.23.0 Update dependency sentry-sdk to v2.23.1 Mar 17, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from d674e82 to ba6101d Compare March 21, 2025 16:02
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.23.1 Update dependency sentry-sdk to v2.24.0 Mar 21, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from ba6101d to 60d0c8a Compare March 24, 2025 13:28
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.24.0 Update dependency sentry-sdk to v2.24.1 Mar 24, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 60d0c8a to b3de214 Compare March 31, 2025 15:49
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.24.1 Update dependency sentry-sdk to v2.25.0 Mar 31, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from b3de214 to bfd5ffd Compare April 2, 2025 19:23
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.25.0 Update dependency sentry-sdk to v2.25.1 Apr 2, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from bfd5ffd to dd902a1 Compare April 14, 2025 15:45
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.25.1 Update dependency sentry-sdk to v2.26.0 Apr 14, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from dd902a1 to 3e74e2e Compare April 15, 2025 12:09
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.26.0 Update dependency sentry-sdk to v2.26.1 Apr 15, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 3e74e2e to ebc5602 Compare April 24, 2025 15:06
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.26.1 Update dependency sentry-sdk to v2.27.0 Apr 24, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from ebc5602 to 8606070 Compare May 12, 2025 12:37
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.27.0 Update dependency sentry-sdk to v2.28.0 May 12, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 8606070 to c6ff50b Compare May 19, 2025 21:01
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.28.0 Update dependency sentry-sdk to v2.29.1 May 19, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from c6ff50b to 4aa41de Compare June 12, 2025 11:34
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.29.1 Update dependency sentry-sdk to v2.30.0 Jun 12, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 4aa41de to 8dc4bc2 Compare June 24, 2025 20:42
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.30.0 Update dependency sentry-sdk to v2.31.0 Jun 24, 2025
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.35.2 Update dependency sentry-sdk to v2.36.0 Sep 4, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 2d157d9 to 3d5dddc Compare September 5, 2025 14:14
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.36.0 Update dependency sentry-sdk to v2.37.0 Sep 5, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 3d5dddc to 2c0144a Compare September 9, 2025 14:47
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.37.0 Update dependency sentry-sdk to v2.37.1 Sep 9, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 2c0144a to 6ba1ca1 Compare September 15, 2025 20:12
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.37.1 Update dependency sentry-sdk to v2.38.0 Sep 15, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 6ba1ca1 to f0823a2 Compare September 25, 2025 09:28
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.38.0 Update dependency sentry-sdk to v2.39.0 Sep 25, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from f0823a2 to 1c3ed3c Compare October 6, 2025 12:54
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.39.0 Update dependency sentry-sdk to v2.40.0 Oct 6, 2025
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.40.0 Update dependency sentry-sdk to v2.41.0 Oct 9, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 1c3ed3c to 109d985 Compare October 9, 2025 15:20
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.41.0 Update dependency sentry-sdk to v2.42.0 Oct 15, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 109d985 to 1c40b7b Compare October 15, 2025 09:08
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 1c40b7b to 75b09fe Compare October 25, 2025 07:16
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.42.0 Update dependency sentry-sdk to v2.42.1 Oct 25, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 75b09fe to 827fe64 Compare October 29, 2025 16:02
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.42.1 Update dependency sentry-sdk to v2.43.0 Oct 29, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 827fe64 to a493426 Compare November 11, 2025 12:03
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.43.0 Update dependency sentry-sdk to v2.44.0 Nov 11, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from a493426 to bb8c908 Compare November 18, 2025 23:04
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.44.0 Update dependency sentry-sdk to v2.45.0 Nov 18, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from bb8c908 to 8202621 Compare November 24, 2025 12:50
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.45.0 Update dependency sentry-sdk to v2.46.0 Nov 24, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 8202621 to 490993f Compare December 3, 2025 20:07
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.46.0 Update dependency sentry-sdk to v2.47.0 Dec 3, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x-lockfile branch from 490993f to 1139f1a Compare December 16, 2025 17:06
@renovate renovate bot changed the title Update dependency sentry-sdk to v2.47.0 Update dependency sentry-sdk to v2.48.0 Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant