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
+83Lines changed: 83 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,88 @@
1
1
# Changelog
2
2
3
+
## 2.42.0
4
+
5
+
### Various fixes & improvements
6
+
7
+
- feat: Add source information for slow outgoing HTTP requests (#4902) by @alexander-alderman-webb
8
+
- tests: Update tox (#4913) by @sentrivana
9
+
- fix(Ray): Retain the original function name when patching Ray tasks (#4858) by @svartalf
10
+
- feat(ai): Add `python-genai` integration (#4891) by @vgrozdanic
11
+
Enable the new Google GenAI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:
12
+
13
+
```python
14
+
import sentry_sdk
15
+
from sentry_sdk.integrations.google_genai import GoogleGenAIIntegration
16
+
sentry_sdk.init(
17
+
dsn="<your-dsn>",
18
+
# Set traces_sample_rate to 1.0 to capture 100%
19
+
# of transactions for tracing.
20
+
traces_sample_rate=1.0,
21
+
# Add data like inputs and responses;
22
+
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
23
+
send_default_pii=True,
24
+
integrations=[
25
+
GoogleGenAIIntegration(),
26
+
],
27
+
)
28
+
```
29
+
30
+
## 2.41.0
31
+
32
+
### Various fixes & improvements
33
+
34
+
- feat: Add `concurrent.futures` patch to threading integration (#4770) by @alexander-alderman-webb
35
+
36
+
The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`.
37
+
- chore: Remove old metrics code (#4899) by @sentrivana
38
+
39
+
Removed all code related to the deprecated experimental metrics feature (`sentry_sdk.metrics`).
40
+
- ref: Remove "experimental" from log function name (#4901) by @sentrivana
41
+
- fix(ai): Add mapping for gen_ai message roles (#4884) by @shellmayr
42
+
- feat(metrics): Add trace metrics behind an experiments flag (#4898) by @k-fish
43
+
44
+
## 2.40.0
45
+
46
+
### Various fixes & improvements
47
+
48
+
- Add LiteLLM integration (#4864) by @constantinius
49
+
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:
50
+
51
+
```python
52
+
import sentry_sdk
53
+
from sentry_sdk.integrations.litellm import LiteLLMIntegration
54
+
sentry_sdk.init(
55
+
dsn="<your-dsn>",
56
+
# Set traces_sample_rate to 1.0 to capture 100%
57
+
# of transactions for tracing.
58
+
traces_sample_rate=1.0,
59
+
# Add data like inputs and responses;
60
+
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
61
+
send_default_pii=True,
62
+
integrations=[
63
+
LiteLLMIntegration(),
64
+
],
65
+
)
66
+
```
67
+
68
+
- Litestar: Copy request info to prevent cookies mutation (#4883) by @alexander-alderman-webb
69
+
- Add tracing to `DramatiqIntegration` (#4571) by @Igreh
70
+
- Also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius
71
+
- Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb
72
+
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