Skip to content

Commit cc9ba3d

Browse files
Add snippet for enabling google genai to changelog
1 parent c79da3f commit cc9ba3d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88
- tests: Update tox (#4913) by @sentrivana
99
- fix(Ray): Retain the original function name when patching Ray tasks (#4858) by @svartalf
1010
- 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+
```
1129

1230
## 2.41.0
1331

0 commit comments

Comments
 (0)