Update dependency sentry-sdk to >=2.42.1 #233

Merged
tobru merged 1 commit from renovate/sentry-sdk-2.x into main 2025-10-22 13:07:26 +00:00
Member

This PR contains the following updates:

Package Change Age Confidence
sentry-sdk (changelog) >=2.39.0 -> >=2.42.1 age confidence

Release Notes

getsentry/sentry-python (sentry-sdk)

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},
)

Configuration

📅 Schedule: 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 Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [sentry-sdk](https://github.com/getsentry/sentry-python) ([changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)) | `>=2.39.0` -> `>=2.42.1` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/sentry-sdk/2.42.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/sentry-sdk/2.39.0/2.42.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>getsentry/sentry-python (sentry-sdk)</summary> ### [`v2.42.1`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2421) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.42.0...2.42.1) ##### Various fixes & improvements - fix(gcp): Inject scopes in TimeoutThread exception with GCP ([#&#8203;4959](https://github.com/getsentry/sentry-python/issues/4959)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) - fix(aws): Inject scopes in TimeoutThread exception with AWS lambda ([#&#8203;4914](https://github.com/getsentry/sentry-python/issues/4914)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) - fix(ai): add message trunction to anthropic ([#&#8203;4953](https://github.com/getsentry/sentry-python/issues/4953)) by [@&#8203;shellmayr](https://github.com/shellmayr) - fix(ai): add message truncation to langgraph ([#&#8203;4954](https://github.com/getsentry/sentry-python/issues/4954)) by [@&#8203;shellmayr](https://github.com/shellmayr) - fix: Default breadcrumbs value for events without breadcrumbs ([#&#8203;4952](https://github.com/getsentry/sentry-python/issues/4952)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) - fix(ai): add message truncation in langchain ([#&#8203;4950](https://github.com/getsentry/sentry-python/issues/4950)) by [@&#8203;shellmayr](https://github.com/shellmayr) - fix(ai): correct size calculation, rename internal property for message truncation & add test ([#&#8203;4949](https://github.com/getsentry/sentry-python/issues/4949)) by [@&#8203;shellmayr](https://github.com/shellmayr) - fix(ai): introduce message truncation for openai ([#&#8203;4946](https://github.com/getsentry/sentry-python/issues/4946)) by [@&#8203;shellmayr](https://github.com/shellmayr) - fix(openai): Use non-deprecated Pydantic method to extract response text ([#&#8203;4942](https://github.com/getsentry/sentry-python/issues/4942)) by [@&#8203;JasonLovesDoggo](https://github.com/JasonLovesDoggo) - ci: 🤖 Update test matrix with new releases (10/16) ([#&#8203;4945](https://github.com/getsentry/sentry-python/issues/4945)) by [@&#8203;github-actions](https://github.com/github-actions) - Handle ValueError in scope resets ([#&#8203;4928](https://github.com/getsentry/sentry-python/issues/4928)) by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) - fix(litellm): Classify embeddings correctly ([#&#8203;4918](https://github.com/getsentry/sentry-python/issues/4918)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) - Generalize NOT\_GIVEN check with omit for openai ([#&#8203;4926](https://github.com/getsentry/sentry-python/issues/4926)) by [@&#8203;sl0thentr0py](https://github.com/sl0thentr0py) - ⚡️ Speed up function `_get_db_span_description` ([#&#8203;4924](https://github.com/getsentry/sentry-python/issues/4924)) by [@&#8203;misrasaurabh1](https://github.com/misrasaurabh1) ### [`v2.42.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2420) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.41.0...2.42.0) ##### Various fixes & improvements - feat: Add source information for slow outgoing HTTP requests ([#&#8203;4902](https://github.com/getsentry/sentry-python/issues/4902)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) - tests: Update tox ([#&#8203;4913](https://github.com/getsentry/sentry-python/issues/4913)) by [@&#8203;sentrivana](https://github.com/sentrivana) - fix(Ray): Retain the original function name when patching Ray tasks ([#&#8203;4858](https://github.com/getsentry/sentry-python/issues/4858)) by [@&#8203;svartalf](https://github.com/svartalf) - feat(ai): Add `python-genai` integration ([#&#8203;4891](https://github.com/getsentry/sentry-python/issues/4891)) by [@&#8203;vgrozdanic](https://github.com/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: ```python 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`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2410) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.40.0...2.41.0) ##### Various fixes & improvements - feat: Add `concurrent.futures` patch to threading integration ([#&#8203;4770](https://github.com/getsentry/sentry-python/issues/4770)) by [@&#8203;alexander-alderman-webb](https://github.com/alexander-alderman-webb) The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`. - chore: Remove old metrics code ([#&#8203;4899](https://github.com/getsentry/sentry-python/issues/4899)) by [@&#8203;sentrivana](https://github.com/sentrivana) Removed all code related to the deprecated experimental metrics feature (`sentry_sdk.metrics`). - ref: Remove "experimental" from log function name ([#&#8203;4901](https://github.com/getsentry/sentry-python/issues/4901)) by [@&#8203;sentrivana](https://github.com/sentrivana) - fix(ai): Add mapping for gen\_ai message roles ([#&#8203;4884](https://github.com/getsentry/sentry-python/issues/4884)) by [@&#8203;shellmayr](https://github.com/shellmayr) - feat(metrics): Add trace metrics behind an experiments flag ([#&#8203;4898](https://github.com/getsentry/sentry-python/issues/4898)) by [@&#8203;k-fish](https://github.com/k-fish) ### [`v2.40.0`](https://github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2400) [Compare Source](https://github.com/getsentry/sentry-python/compare/2.39.0...2.40.0) ##### Various fixes & improvements - Add LiteLLM integration ([#&#8203;4864](https://github.com/getsentry/sentry-python/issues/4864)) by [@&#8203;constantinius](https://github.com/constantinius) Once you've enabled the [new LiteLLM integration](https://docs.sentry.io/platforms/python/integrations/litellm/), you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests: ```python 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}, ) ```` - Move `_set_agent_data` call to `ai_client_span` function ([#&#8203;4876](https://github.com/getsentry/sentry-python/issues/4876)) by [@&#8203;constantinius](https://github.com/constantinius) - Add script to determine lowest supported versions ([#&#8203;4867](https://github.com/getsentry/sentry-python/issues/4867)) by [@&#8203;sentrivana](https://github.com/sentrivana) - Update `CONTRIBUTING.md` ([#&#8203;4870](https://github.com/getsentry/sentry-python/issues/4870)) by [@&#8203;sentrivana](https://github.com/sentrivana) </details> --- ### Configuration 📅 **Schedule**: 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 [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xLjQiLCJ1cGRhdGVkSW5WZXIiOiI0MS4xLjQiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
renovate added the
dependencies
label 2025-10-20 03:01:39 +00:00
renovate force-pushed renovate/sentry-sdk-2.x from 81c9e4afd2 to de0ac39901 2025-10-21 03:01:53 +00:00 Compare
renovate changed title from Update dependency sentry-sdk to >=2.42.0 to Update dependency sentry-sdk to >=2.42.1 2025-10-21 03:01:54 +00:00
tobru merged commit ed7070ff2c into main 2025-10-22 13:07:26 +00:00
tobru deleted branch renovate/sentry-sdk-2.x 2025-10-22 13:07:27 +00:00
Sign in to join this conversation.
No description provided.