Skip to content

Commit 936bf3d

Browse files
committed
feat(ai): Add python-genai integration
1 parent 87f8f39 commit 936bf3d

File tree

7 files changed

+2075
-0
lines changed

7 files changed

+2075
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ ignore_missing_imports = true
118118
module = "langgraph.*"
119119
ignore_missing_imports = true
120120

121+
[[tool.mypy.overrides]]
122+
module = "google.genai.*"
123+
ignore_missing_imports = true
124+
121125
[[tool.mypy.overrides]]
122126
module = "executing.*"
123127
ignore_missing_imports = true

scripts/populate_tox/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@
143143
"package": "gql[all]",
144144
"num_versions": 2,
145145
},
146+
"google_genai": {
147+
"package": "google-genai",
148+
"deps": {
149+
"*": ["pytest-asyncio"],
150+
},
151+
"python": ">=3.8",
152+
},
146153
"graphene": {
147154
"package": "graphene",
148155
"deps": {

sentry_sdk/integrations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
9191
"sentry_sdk.integrations.flask.FlaskIntegration",
9292
"sentry_sdk.integrations.gql.GQLIntegration",
9393
"sentry_sdk.integrations.graphene.GrapheneIntegration",
94+
"sentry_sdk.integrations.google_genai.GoogleGenAIIntegration",
9495
"sentry_sdk.integrations.httpx.HttpxIntegration",
9596
"sentry_sdk.integrations.huey.HueyIntegration",
9697
"sentry_sdk.integrations.huggingface_hub.HuggingfaceHubIntegration",
@@ -140,6 +141,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
140141
"flask": (1, 1, 4),
141142
"gql": (3, 4, 1),
142143
"graphene": (3, 3),
144+
"google_genai": (1, 0, 0), # google-genai
143145
"grpc": (1, 32, 0), # grpcio
144146
"httpx": (0, 16, 0),
145147
"huggingface_hub": (0, 24, 7),

0 commit comments

Comments
 (0)