You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,61 @@
1
1
# Changelog
2
2
3
+
## 2.41.0
4
+
5
+
### Various fixes & improvements
6
+
7
+
- feat: Add `concurrent.futures` patch to threading integration (#4770) by @alexander-alderman-webb
8
+
9
+
The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`.
10
+
- chore: Remove old metrics code (#4899) by @sentrivana
11
+
12
+
Removed all code related to the deprecated experimental metrics feature (`sentry_sdk.metrics`).
13
+
- ref: Remove "experimental" from log function name (#4901) by @sentrivana
14
+
- fix(ai): Add mapping for gen_ai message roles (#4884) by @shellmayr
15
+
- feat(metrics): Add trace metrics behind an experiments flag (#4898) by @k-fish
16
+
17
+
## 2.40.0
18
+
19
+
### Various fixes & improvements
20
+
21
+
- Add LiteLLM integration (#4864) by @constantinius
22
+
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:
23
+
24
+
```python
25
+
import sentry_sdk
26
+
from sentry_sdk.integrations.litellm import LiteLLMIntegration
27
+
sentry_sdk.init(
28
+
dsn="<your-dsn>",
29
+
# Set traces_sample_rate to 1.0 to capture 100%
30
+
# of transactions for tracing.
31
+
traces_sample_rate=1.0,
32
+
# Add data like inputs and responses;
33
+
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
34
+
send_default_pii=True,
35
+
integrations=[
36
+
LiteLLMIntegration(),
37
+
],
38
+
)
39
+
```
40
+
41
+
- Litestar: Copy request info to prevent cookies mutation (#4883) by @alexander-alderman-webb
42
+
- Add tracing to `DramatiqIntegration` (#4571) by @Igreh
43
+
- Also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius
44
+
- Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb
45
+
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.
0 commit comments