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
+34
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,39 @@
1
1
# Changelog
2
2
3
+
## 1.42.0
4
+
5
+
### Various fixes & improvements
6
+
7
+
- **New integration:** [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/) (#2791) by @colin-sentry
8
+
9
+
We added an integration for OpenAI to capture errors and also performance data when using the OpenAI Python SDK.
10
+
11
+
Useage:
12
+
13
+
This integrations is auto-enabling, so if you have the `openai` package in your project it will be enabled. Just initialize Sentry before you create your OpenAI client.
14
+
15
+
```python
16
+
from openai import OpenAI
17
+
18
+
import sentry_sdk
19
+
20
+
sentry_sdk.init(
21
+
dsn="___PUBLIC_DSN___",
22
+
enable_tracing=True,
23
+
traces_sample_rate=1.0,
24
+
)
25
+
26
+
client = OpenAI()
27
+
```
28
+
29
+
For more information, see the documentation for [OpenAI integration](https://docs.sentry.io/platforms/python/integrations/openai/).
30
+
31
+
- Discard open OpenTelemetry spans after 10 minutes (#2801) by @antonpirker
32
+
- Propagate sentry-trace and baggage headers to Huey tasks (#2792) by @cnschn
33
+
- Added Event type (#2753) by @szokeasaurusrex
34
+
- Improve scrub_dict typing (#2768) by @szokeasaurusrex
35
+
- Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 (#2797) by @dependabot
0 commit comments