Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 29, 2025

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) ==2.29.1 -> ==2.43.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

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(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

  • fix(strawberry): Remove autodetection, always use sync extension (#​4984) by @​sentrivana

  • 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 (#&#8203;4883) by @&#8203;alexander-alderman-webb
- Add tracing to `DramatiqIntegration` (#&#8203;4571) by @&#8203;Igreh
- Also emit spans for MCP tool calls done by the LLM (#&#8203;4875) by @&#8203;constantinius
- Option to not trace HTTP requests based on status codes (#&#8203;4869) by @&#8203;alexander-alderman-webb
You can now disable transactions for incoming requests with specific HTTP status codes. The [new `trace_ignore_status_codes` option](https://docs.sentry.io/platforms/python/configuration/options/#trace_ignore_status_codes) 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.
  
```python
import sentry_sdk

sentry_sdk.init(
    trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
)

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

v2.34.1

Compare Source

Various fixes & improvements

v2.34.0

Compare Source

Various fixes & improvements

v2.33.2

Compare Source

Various fixes & improvements

v2.33.1

Compare Source

Various fixes & improvements

v2.33.0

Compare Source

Various fixes & improvements

v2.32.0

Compare Source

Various fixes & improvements

v2.31.0

Compare Source

Various fixes & improvements
import sentry_sdk
from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration

v2.30.0

Compare Source

Various fixes & improvements
  • New beta feature: Sentry logs for Loguru (#​4445) by @​sentrivana

    We can now capture Loguru logs and send them to Sentry.

import sentry_sdk
from sentry_sdk.integrations.loguru import LoguruIntegration

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC).

🚦 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 requested a review from codegen-team as a code owner June 29, 2025 21:40
@renovate renovate bot enabled auto-merge (squash) June 29, 2025 21:40
@renovate renovate bot requested a review from a team as a code owner June 29, 2025 21:40
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 7 times, most recently from 63ba320 to 1245dc8 Compare June 30, 2025 14:25
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from de83e20 to 244a45c Compare July 15, 2025 13:12
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.32.0 fix(deps): update dependency sentry-sdk to v2.33.0 Jul 15, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 4 times, most recently from c8905f4 to 0437e63 Compare July 16, 2025 17:26
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.33.0 fix(deps): update dependency sentry-sdk to v2.33.1 Jul 21, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 0437e63 to e49d25d Compare July 21, 2025 19:02
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.33.1 fix(deps): update dependency sentry-sdk to v2.33.2 Jul 22, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from 9ddda95 to 97a2e17 Compare July 29, 2025 17:00
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.33.2 fix(deps): update dependency sentry-sdk to v2.34.0 Jul 29, 2025
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.34.0 fix(deps): update dependency sentry-sdk to v2.34.1 Jul 30, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 97a2e17 to 6520893 Compare July 30, 2025 17:09
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 79efa4b to 72103dc Compare August 11, 2025 03:18
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 11 times, most recently from 4b9061b to 74fca10 Compare September 24, 2025 19:08
cursor[bot]

This comment was marked as outdated.

@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 74fca10 to 9ef9494 Compare September 25, 2025 10:00
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.38.0 fix(deps): update dependency sentry-sdk to v2.39.0 Sep 25, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 9ef9494 to ab4ad15 Compare September 25, 2025 18:29
uv.lock Outdated
{ name = "datamodel-code-generator", specifier = ">=0.26.5" },
{ name = "fastmcp", specifier = ">=2.9.0" },
{ name = "gitpython", specifier = "==3.1.44" },
{ name = "gitpython", specifier = "==3.1.45" },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Dependency Version Mismatch Causes Inconsistency

The uv.lock file updates GitPython to 3.1.45, but pyproject.toml explicitly pins it to 3.1.44. This version mismatch creates an inconsistency between declared and locked dependencies, potentially causing different installations and unexpected behavior across environments.

Fix in Cursor Fix in Web

@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from fab8b3d to f01e1e1 Compare October 6, 2025 12:47
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.39.0 fix(deps): update dependency sentry-sdk to v2.40.0 Oct 6, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from f01e1e1 to 9d6a943 Compare October 7, 2025 01:30
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.40.0 fix(deps): update dependency sentry-sdk to v2.41.0 Oct 9, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 9d6a943 to b670934 Compare October 9, 2025 16:29
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.41.0 fix(deps): update dependency sentry-sdk to v2.42.0 Oct 15, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 51dc6a5 to 86610de Compare October 20, 2025 13:00
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.42.0 fix(deps): update dependency sentry-sdk to v2.42.1 Oct 20, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 86610de to 6a9a9e5 Compare October 21, 2025 09:07
@renovate renovate bot changed the title fix(deps): update dependency sentry-sdk to v2.42.1 fix(deps): update dependency sentry-sdk to v2.43.0 Oct 29, 2025
@renovate renovate bot force-pushed the renovate/sentry-sdk-2.x branch from 6a9a9e5 to aa88fdd Compare October 29, 2025 14:41
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