Update dependency sentry-sdk to >=2.61.0 #536

Merged
tobru merged 1 commit from renovate/sentry-sdk-2.x into main 2026-05-29 07:51:55 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) >=2.60.0>=2.61.0 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

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
  • (anthropic) Do not set gen_ai.response.model to None by @​alexander-alderman-webb in #​6312

  • (asyncpg) Use Sentry span attribute name conventions by @​ericapisani in #​6306

  • (boto3) Guard setting method by @​sentrivana in #​6288

  • (cohere) Stop setting transaction status when child span fails by @​alexander-alderman-webb in #​6300

  • (google-genai) Guard against None response ID and response model by @​alexander-alderman-webb in #​6314

  • (huey) Fix group and chord handling in enqueue by @​ericapisani in #​6392

  • (integrations) Auto-wrap root gen_ai spans for openai, cohere, langgraph, huggingface_hub by @​constantinius in #​6285

  • (serializer) Don't call __iter__ on arbitrary sequences by @​sentrivana in #​6304

    Previously, we'd attempt to serialize any Sequence by walking through it by calling its __iter__ function.
    We've now changed the serializer to only serialize built-in sequences (like lists, tuples, and sets) to avoid
    triggering side-effects from custom __iter__ implementations.

    This might mean some objects might be serialized differently. If you want to continue serializing a specific
    custom sequence class the old way, you can register it via sentry_sdk.serializer.add_repr_sequence_type (see
    here).

  • Memory leak in SentrySpanProcessor by @​volodkindv in #​6271

Documentation 📚
Internal Changes 🔧
Langchain
Openai Agents
Pydantic Ai
Other

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 has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [sentry-sdk](https://github.com/getsentry/sentry-python) ([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)) | `>=2.60.0` → `>=2.61.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/sentry-sdk/2.61.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/sentry-sdk/2.60.0/2.61.0?slim=true) | --- ### Release Notes <details> <summary>getsentry/sentry-python (sentry-sdk)</summary> ### [`v2.61.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2610) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.60.0...2.61.0) ##### New Features ✨ - Add `server.address` to transformed spans when `stream_gen_ai_spans=True` by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6307](https://github.com/getsentry/sentry-python/pull/6307) - Allow integrations to define control flow exceptions by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;6425](https://github.com/getsentry/sentry-python/pull/6425) - Disable string truncation for events by default by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6290](https://github.com/getsentry/sentry-python/pull/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`: ```python sentry_sdk.init( ..., max_value_length=100_000, ) ``` ##### Bug Fixes 🐛 ##### Langchain - Stop setting transaction status when child span fails by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6301](https://github.com/getsentry/sentry-python/pull/6301) - Catch `TypeError` on `langchain.agents` import by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6268](https://github.com/getsentry/sentry-python/pull/6268) ##### Openai Agents - Handle `starting_agent` keyword argument in runner patches by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;6428](https://github.com/getsentry/sentry-python/pull/6428) - Remove hosted MCP tool spans by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6391](https://github.com/getsentry/sentry-python/pull/6391) - Use `name`, not `description` in `start_span` by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;6323](https://github.com/getsentry/sentry-python/pull/6323) - Stop setting transaction status when child span fails by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6303](https://github.com/getsentry/sentry-python/pull/6303) ##### Pydantic AI - Stop setting tokens on Invoke Agent spans by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6320](https://github.com/getsentry/sentry-python/pull/6320) - Stop setting transaction status when child span fails by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6302](https://github.com/getsentry/sentry-python/pull/6302) - Remove `Agent.run_stream_events()` patch by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6281](https://github.com/getsentry/sentry-python/pull/6281) ##### Strawberry - Wrap yields in try-except to ensure span cleanup by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;6381](https://github.com/getsentry/sentry-python/pull/6381) - Fix `AttributeError` on `graphql_span` in `resolve` by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;6289](https://github.com/getsentry/sentry-python/pull/6289) ##### Other - (anthropic) Do not set `gen_ai.response.model` to `None` by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6312](https://github.com/getsentry/sentry-python/pull/6312) - (asyncpg) Use Sentry span attribute name conventions by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;6306](https://github.com/getsentry/sentry-python/pull/6306) - (boto3) Guard setting method by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;6288](https://github.com/getsentry/sentry-python/pull/6288) - (cohere) Stop setting transaction status when child span fails by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6300](https://github.com/getsentry/sentry-python/pull/6300) - (google-genai) Guard against `None` response ID and response model by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6314](https://github.com/getsentry/sentry-python/pull/6314) - (huey) Fix group and chord handling in enqueue by [@&#8203;ericapisani](https://github.com/ericapisani) in [#&#8203;6392](https://github.com/getsentry/sentry-python/pull/6392) - (integrations) Auto-wrap root gen\_ai spans for openai, cohere, langgraph, huggingface\_hub by [@&#8203;constantinius](https://github.com/constantinius) in [#&#8203;6285](https://github.com/getsentry/sentry-python/pull/6285) - (serializer) Don't call `__iter__` on arbitrary sequences by [@&#8203;sentrivana](https://github.com/sentrivana) in [#&#8203;6304](https://github.com/getsentry/sentry-python/pull/6304) Previously, we'd attempt to serialize any `Sequence` by walking through it by calling its `__iter__` function. We've now changed the serializer to only serialize built-in sequences (like lists, tuples, and sets) to avoid triggering side-effects from custom `__iter__` implementations. This might mean some objects might be serialized differently. If you want to continue serializing a specific custom sequence class the old way, you can register it via `sentry_sdk.serializer.add_repr_sequence_type` (see [here](https://github.com/getsentry/sentry-python/blob/54f768680cad8a40ab97be4dddd16c12c9cba493/sentry_sdk/serializer.py#L60-L61)). - Memory leak in SentrySpanProcessor by [@&#8203;volodkindv](https://github.com/volodkindv) in [#&#8203;6271](https://github.com/getsentry/sentry-python/pull/6271) ##### Documentation 📚 - (celery) Remove duplicated "is" in `beat.py` docstring by [@&#8203;quyentonndbs](https://github.com/quyentonndbs) in [#&#8203;6266](https://github.com/getsentry/sentry-python/pull/6266) ##### Internal Changes 🔧 ##### Langchain - Deduplicate by removing `node.callspec.id` matching by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6426](https://github.com/getsentry/sentry-python/pull/6426) - Remove `WatchedSpan` class by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6407](https://github.com/getsentry/sentry-python/pull/6407) ##### Openai Agents - Deduplicate by removing `node.callspec.id` matching by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6424](https://github.com/getsentry/sentry-python/pull/6424) - Fix asyncio loop missing for sync tests by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) in [#&#8203;6412](https://github.com/getsentry/sentry-python/pull/6412) ##### Pydantic Ai - Support `Agent.run_stream_events()` returning a context manager by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6322](https://github.com/getsentry/sentry-python/pull/6322) - Remove test without assertions by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6321](https://github.com/getsentry/sentry-python/pull/6321) ##### Other - (openai) Deduplicate by removing `node.callspec.id` matching by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6427](https://github.com/getsentry/sentry-python/pull/6427) - Respect context manager lifecycles in `fake_record_sql_queries` by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) in [#&#8203;6295](https://github.com/getsentry/sentry-python/pull/6295) </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTEuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE5MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
Update dependency sentry-sdk to >=2.61.0
All checks were successful
Tests / test (push) Successful in 52s
088b286e84
tobru merged commit 9f1989b965 into main 2026-05-29 07:51:55 +00:00
tobru deleted branch renovate/sentry-sdk-2.x 2026-05-29 07:51:55 +00:00
Sign in to join this conversation.
No description provided.