@@ -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 """
@@ -402,7 +402,7 @@ async def _tool_handler_wrapper(
402402 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
403403
404404 # Start span and execute
405- with _with_active_http_scopes (ctx = ctx ):
405+ with _active_http_scopes (ctx = ctx ):
406406 span_mgr : "Union[Span, StreamedSpan]"
407407 if span_streaming :
408408 span_mgr = sentry_sdk .traces .start_span (
@@ -520,7 +520,7 @@ async def _prompt_handler_wrapper(
520520 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
521521
522522 # Start span and execute
523- with _with_active_http_scopes (ctx = ctx ):
523+ with _active_http_scopes (ctx = ctx ):
524524 span_mgr : "Union[Span, StreamedSpan]"
525525 if span_streaming :
526526 span_mgr = sentry_sdk .traces .start_span (
@@ -690,7 +690,7 @@ async def _resource_handler_wrapper(
690690 span_streaming = has_span_streaming_enabled (sentry_sdk .get_client ().options )
691691
692692 # Start span and execute
693- with _with_active_http_scopes (ctx = ctx ):
693+ with _active_http_scopes (ctx = ctx ):
694694 span_mgr : "Union[Span, StreamedSpan]"
695695 if span_streaming :
696696 span_mgr = sentry_sdk .traces .start_span (
0 commit comments