Skip to content

Commit 0d6b7dc

Browse files
use sentry_sdk.traces.start_span directly
1 parent 6dac848 commit 0d6b7dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/google_genai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def new_async_generate_content_stream(
152152
_model, contents, model_name = prepare_generate_content_args(args, kwargs)
153153

154154
if has_span_streaming_enabled(client.options):
155-
chat_span = get_start_span_function()(
155+
chat_span = sentry_sdk.traces.start_span(
156156
name=f"chat {model_name}",
157157
attributes={
158158
"sentry.op": OP.GEN_AI_CHAT,

0 commit comments

Comments
 (0)