Skip to content

Commit a085c79

Browse files
committed
fix(integrations): Update span status to INTERNAL_ERROR for exception handling in embed content wrappers
1 parent 78c693a commit a085c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/google_genai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def new_embed_content(self, *args, **kwargs):
331331
response = f(self, *args, **kwargs)
332332
except Exception as exc:
333333
_capture_exception(exc)
334-
span.set_status(SPANSTATUS.ERROR)
334+
span.set_status(SPANSTATUS.INTERNAL_ERROR)
335335
raise
336336

337337
set_span_data_for_embed_response(span, integration, response)
@@ -366,7 +366,7 @@ async def new_async_embed_content(self, *args, **kwargs):
366366
response = await f(self, *args, **kwargs)
367367
except Exception as exc:
368368
_capture_exception(exc)
369-
span.set_status(SPANSTATUS.ERROR)
369+
span.set_status(SPANSTATUS.INTERNAL_ERROR)
370370
raise
371371

372372
set_span_data_for_embed_response(span, integration, response)

0 commit comments

Comments
 (0)