Skip to content

Commit 6c5bd3a

Browse files
author
getsentry-bot
committed
Merge branch 'release/2.42.0'
2 parents f99a17b + cc9ba3d commit 6c5bd3a

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Changelog
22

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+
330
## 2.41.0
431

532
### Various fixes & improvements

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
3232
author = "Sentry Team and Contributors"
3333

34-
release = "2.41.0"
34+
release = "2.42.0"
3535
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3636

3737

sentry_sdk/consts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,4 +1348,4 @@ def _get_default_options():
13481348
del _get_default_options
13491349

13501350

1351-
VERSION = "2.41.0"
1351+
VERSION = "2.42.0"

setup.py

Lines changed: 1 addition & 1 deletion
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="2.41.0",
24+
version="2.42.0",
2525
author="Sentry Team and Contributors",
2626
author_email="hello@sentry.io",
2727
url="https://github.com/getsentry/sentry-python",

0 commit comments

Comments
 (0)