Skip to content

Commit 16d25e2

Browse files
author
getsentry-bot
committed
Merge branch 'release/1.42.0'
2 parents e7535c1 + d27c5cd commit 16d25e2

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

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
36+
337
## 1.41.0
438

539
### Various fixes & improvements

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
3131
author = "Sentry Team and Contributors"
3232

33-
release = "1.41.0"
33+
release = "1.42.0"
3434
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3535

3636

sentry_sdk/consts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,4 @@ def _get_default_options():
320320
del _get_default_options
321321

322322

323-
VERSION = "1.41.0"
323+
VERSION = "1.42.0"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_file_text(file_name):
2121

2222
setup(
2323
name="sentry-sdk",
24-
version="1.41.0",
24+
version="1.42.0",
2525
author="Sentry Team and Contributors",
2626
author_email="[email protected]",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)