Commit 233454f
authored
fix(deps): update dependency sentry-sdk to v2.41.0 (#126)
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| [sentry-sdk](https://redirect.github.com/getsentry/sentry-python)
([changelog](https://redirect.github.com/getsentry/sentry-python/blob/master/CHANGELOG.md))
| `==2.28.0` -> `==2.41.0` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>getsentry/sentry-python (sentry-sdk)</summary>
###
[`v2.41.0`](https://redirect.github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2410)
[Compare
Source](https://redirect.github.com/getsentry/sentry-python/compare/2.40.0...2.41.0)
##### Various fixes & improvements
- feat: Add `concurrent.futures` patch to threading integration
([#​4770](https://redirect.github.com/getsentry/sentry-python/issues/4770))
by
[@​alexander-alderman-webb](https://redirect.github.com/alexander-alderman-webb)
The SDK now makes sure to automatically preserve span relationships when
using `ThreadPoolExecutor`.
- chore: Remove old metrics code
([#​4899](https://redirect.github.com/getsentry/sentry-python/issues/4899))
by [@​sentrivana](https://redirect.github.com/sentrivana)
Removed all code related to the deprecated experimental metrics feature
(`sentry_sdk.metrics`).
- ref: Remove "experimental" from log function name
([#​4901](https://redirect.github.com/getsentry/sentry-python/issues/4901))
by [@​sentrivana](https://redirect.github.com/sentrivana)
- fix(ai): Add mapping for gen\_ai message roles
([#​4884](https://redirect.github.com/getsentry/sentry-python/issues/4884))
by [@​shellmayr](https://redirect.github.com/shellmayr)
- feat(metrics): Add trace metrics behind an experiments flag
([#​4898](https://redirect.github.com/getsentry/sentry-python/issues/4898))
by [@​k-fish](https://redirect.github.com/k-fish)
###
[`v2.40.0`](https://redirect.github.com/getsentry/sentry-python/blob/HEAD/CHANGELOG.md#2400)
[Compare
Source](https://redirect.github.com/getsentry/sentry-python/compare/2.39.0...2.40.0)
##### Various fixes & improvements
- Add LiteLLM integration
([#​4864](https://redirect.github.com/getsentry/sentry-python/issues/4864))
by [@​constantinius](https://redirect.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 (#​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](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 ([#​4876](https://redirect.github.com/getsentry/sentry-python/issues/4876)) by [@​constantinius](https://redirect.github.com/constantinius)
- Add script to determine lowest supported versions ([#​4867](https://redirect.github.com/getsentry/sentry-python/issues/4867)) by [@​sentrivana](https://redirect.github.com/sentrivana)
- Update `CONTRIBUTING.md` ([#​4870](https://redirect.github.com/getsentry/sentry-python/issues/4870)) by [@​sentrivana](https://redirect.github.com/sentrivana)
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/codegen-sh/graph-sitter).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzEuOSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent d93f398 commit 233454f
2 files changed
+45
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments