File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments