@@ -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 """
@@ -568,7 +568,7 @@ async def _tool_handler_wrapper(
568568 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
569569
570570 # Start span and execute
571- with _with_active_http_scopes (ctx = ctx ):
571+ with _active_http_scopes (ctx = ctx ):
572572 span_mgr : "Union[Span, StreamedSpan]"
573573 if span_streaming :
574574 span_mgr = sentry_sdk .traces .start_span (
@@ -664,7 +664,7 @@ async def _prompt_handler_wrapper(
664664 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
665665
666666 # Start span and execute
667- with _with_active_http_scopes (ctx = ctx ):
667+ with _active_http_scopes (ctx = ctx ):
668668 span_mgr : "Union[Span, StreamedSpan]"
669669 if span_streaming :
670670 span_mgr = sentry_sdk .traces .start_span (
@@ -758,7 +758,7 @@ async def _resource_handler_wrapper(
758758 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
759759
760760 # Start span and execute
761- with _with_active_http_scopes (ctx = ctx ):
761+ with _active_http_scopes (ctx = ctx ):
762762 span_mgr : "Union[Span, StreamedSpan]"
763763 if span_streaming :
764764 span_mgr = sentry_sdk .traces .start_span (
0 commit comments