Skip to content

Commit d27c5cd

Browse files
committed
Update changelog
1 parent 8f9d49e commit d27c5cd

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

CHANGELOG.md

+29-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,35 @@
44

55
### Various fixes & improvements
66

7-
- build(deps): bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 (#2797) by @dependabot
8-
- ref: Event Type (#2753) by @szokeasaurusrex
9-
- Discard open spans after 10 minutes (#2801) by @antonpirker
10-
- Add a method for normalizing data passed to set_data (#2800) by @colin-sentry
11-
- OpenAI integration (#2791) by @colin-sentry
12-
- Propagate sentry-trace and baggage to huey tasks (#2792) by @cnschn
13-
- ref: Improve scrub_dict typing (#2768) by @szokeasaurusrex
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
1436

1537
## 1.41.0
1638

0 commit comments

Comments
 (0)