Skip to content

Update dependency sentry-sdk to v2 - #347

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/sentry-sdk-2.x
Open

Update dependency sentry-sdk to v2#347
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/sentry-sdk-2.x

Conversation

@renovate

@renovate renovate Bot commented Jun 7, 2025

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) ~1~2.68.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

v2.68.0

Compare Source

Important
  • We're making enable_logs and enable_metrics no-op with this release (#​7177), and they'll be dropped in the next major.

    Previously, enable_logs also controlled automatic logs collection from the logging and Loguru integrations. These integrations now get an integration-level capture_sentry_logs boolean option to allow for more control over the auto-collection. These options are False by default, i.e., nothing is auto-collected without your explicit opt-in.

Action Needed

If you had enable_logs set to True:

  • If you were using the sentry_sdk.logger.X API, no action necessary, the API will just work.
  • If you were auto-collecting logs from either LoggingIntegration or LoguruIntegration, the auto-collection will be turned off in this release. You can switch auto-collection on explicitly with:
import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.loguru import LoguruIntegration

sentry_sdk.init(
    integrations=[
        LoggingIntegration(capture_sentry_logs=True),
        LoguruIntegration(capture_sentry_logs=True),
    ],
)

If you had enable_logs set to False:

  • If you were using it to gate usages of the sentry_sdk.logger.X API, you'll need to remove the calls entirely or define a before_send_log callback to filter out unwanted logs.

If you has enable_metrics set to False:

  • Any metrics emitted using the metrics API will be emitted. You'll need to drop them in a before_send_metric or remove the calls to the API.
Why We're Doing This

We recognize this is a disruptive change for some folks and want to make it clear this is a one-off. We're removing the options because they were an unnecessary hurdle that one had to jump through to be able to use logs and metrics, and it was confusing why the logging API would not just work on its own. On the other hand, we wanted to give you more fine-grained control over automatic collection.

New Features ✨
Other
Bug Fixes 🐛
Internal Changes 🔧
HTTPX, HTTPX2
Other

v2.67.1

Compare Source

Bug Fixes 🐛

v2.67.0

Compare Source

New Features ✨
Batcher
Integrations
Langchain
Openai
Streaming
Other
Bug Fixes 🐛
Openai Agents
Tests
Other
Documentation 📚
Internal Changes 🔧
Fastmcp
Mcp
Openai Agents
Other

v2.66.1

Compare Source

Bug Fixes 🐛
Tracing
Internal Changes 🔧

v2.66.0

Compare Source

New Features ✨
Bug Fixes 🐛
Tracing
Internal Changes 🔧

v2.65.0

Compare Source

New Features ✨
Huey
Other
Bug Fixes 🐛
Tracing
Other
Internal Changes 🔧

v2.64.0

Compare Source

The SDK now extracts all gen_ai spans out of a transaction and sends them as v2 envelope items by default. This prevents gen_ai spans from being dropped when the transaction payload exceeds size limits. Because they are no longer constrained by transaction size limits, AI message data is also no longer truncated. To keep the previous behavior, set stream_gen_ai_spans=False.

Self-hosted Sentry users should opt out with stream_gen_ai_spans=False, since streamed gen_ai spans may not be ingested by their Sentry instance.

Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧
Other

v2.63.0

Compare Source

Bug Fixes 🐛
Fastapi
Other
Internal Changes 🔧

v2.62.0

Compare Source

New Features ✨
  • Add integration for aiomysql by @​tonal in #​4703

    We're adding support for the aiomysql package. To enable the integration, add it to your integrations list:

    import sentry_sdk
    from sentry_sdk.integrations.aiomysql import AioMySQLIntegration
    
    sentry_sdk.init(
        traces_sample_rate=1.0,
        integrations=[AioMySQLIntegration()],
    )
  • Support HTTPX2 by @​sentrivana in #​6463

    We're adding out-of-the-box support for HTTPX2. As long as use the package, the Sentry integration
    will be enabled automatically and you should see your requests instrumented in Sentry.

    import httpx2
    import sentry_sdk
    
    sentry_sdk.init(...)
    
    with sentry_sdk.start_transaction(name="testing_sentry"):
        httpx2.get("https://sentry.io/")
Bug Fixes 🐛
Internal Changes 🔧

v2.61.1

Compare Source

Internal Changes 🔧
Rq
Other

v2.61.0

Compare Source

New Features ✨
  • Add server.address to transformed spans when stream_gen_ai_spans=True by @​alexander-alderman-webb in #​6307

  • Allow integrations to define control flow exceptions by @​sentrivana in #​6425

  • Disable string truncation for events by default by @​alexander-alderman-webb in #​6290

    Following a previous significant increase of the string truncation limit, we've now completely removed the limit by default.
    In case you have large strings in your events, you should now be able to see them.

    In rare cases, if you have really long strings (or a lot of them), you might see envelopes being dropped because of their size.
    If that happens, you can set the max_value_length init option to the previous value of 100_000:

    sentry_sdk.init(
        ...,
        max_value_length=100_000,
    )
Bug Fixes 🐛
Langchain
Openai Agents
Pydantic AI
Strawberry
Other

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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 branch from 9b6071e to 4a45efa Compare June 15, 2025 08:06
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from c08d902 to 4c62aa6 Compare June 28, 2025 20:34
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from 4a97cfe to e2c8fa8 Compare July 22, 2025 13:07
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 061d7ba to 910fa3e Compare July 30, 2025 12:07
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 910fa3e to 47bd7fd Compare August 14, 2025 18:00
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 47bd7fd to 58235f9 Compare August 26, 2025 14:41
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 393a50d to 6e7b886 Compare September 9, 2025 18:35
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 89f3923 to cc2dba4 Compare September 20, 2025 04:44
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 87dddcc to fbca4d6 Compare September 25, 2025 09:49
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from feac5f1 to 8e3b261 Compare October 9, 2025 18:56
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from 163b50e to c765111 Compare October 20, 2025 13:05
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from c765111 to dcffea4 Compare October 29, 2025 18:56
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from dcffea4 to 56611aa Compare November 11, 2025 09:52
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 094900b to bb8b8c3 Compare November 24, 2025 10:08
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from bb8b8c3 to 96bcb0f Compare December 3, 2025 18:08
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 1352b8a to 717341c Compare December 21, 2025 20:53
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 717341c to 6e4eaa6 Compare January 8, 2026 00:29
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 0a5d068 to 0d12d00 Compare March 2, 2026 17:47
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from e7ee340 to 4bc0ec3 Compare March 17, 2026 17:19
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from cd814b6 to 9bc4af8 Compare March 26, 2026 18:44
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from 950df07 to abefe42 Compare April 6, 2026 17:55
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from abefe42 to 0e85e34 Compare April 13, 2026 21:14
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 5b1e28d to d96e56c Compare April 23, 2026 13:56
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from d96e56c to 29f7ab0 Compare May 4, 2026 13:43
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 864a6bc to 26b1915 Compare May 15, 2026 01:57
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from d97c6f2 to 8dedd6b Compare May 28, 2026 11:46
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 3 times, most recently from 400946b to aaa581b Compare June 8, 2026 16:10
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from aaa581b to 761d02a Compare June 16, 2026 19:13
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 394ad01 to 5e57678 Compare July 4, 2026 13:37
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from 830a802 to 5ceacf4 Compare July 13, 2026 11:54
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch 2 times, most recently from be938cd to 5d66d9e Compare July 22, 2026 18:06
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 5d66d9e to 9958188 Compare July 29, 2026 15:48
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 9958188 to 4e0bef8 Compare August 10, 2026 14:00
@renovate
renovate Bot force-pushed the renovate/sentry-sdk-2.x branch from 4e0bef8 to e923943 Compare August 13, 2026 14:44
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.

0 participants