@@ -96,7 +96,7 @@ def setup_once() -> None:
9696
9797
9898@contextmanager
99- def _with_active_http_scopes (
99+ def _active_http_scopes (
100100 ctx : "Any" = None ,
101101) -> "Iterator[None]" :
102102 """
@@ -497,7 +497,7 @@ async def _tool_handler_wrapper(
497497 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
498498
499499 # Start span and execute
500- with _with_active_http_scopes (ctx = ctx ):
500+ with _active_http_scopes (ctx = ctx ):
501501 span_mgr : "Union[Span, StreamedSpan]"
502502 if span_streaming :
503503 span_mgr = sentry_sdk .traces .start_span (
@@ -595,7 +595,7 @@ async def _prompt_handler_wrapper(
595595 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
596596
597597 # Start span and execute
598- with _with_active_http_scopes (ctx = ctx ):
598+ with _active_http_scopes (ctx = ctx ):
599599 span_mgr : "Union[Span, StreamedSpan]"
600600 if span_streaming :
601601 span_mgr = sentry_sdk .traces .start_span (
@@ -693,7 +693,7 @@ async def _resource_handler_wrapper(
693693 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
694694
695695 # Start span and execute
696- with _with_active_http_scopes (ctx = ctx ):
696+ with _active_http_scopes (ctx = ctx ):
697697 span_mgr : "Union[Span, StreamedSpan]"
698698 if span_streaming :
699699 span_mgr = sentry_sdk .traces .start_span (
0 commit comments