Skip to content

Commit 0e5aac6

Browse files
rename function
1 parent 5b031db commit 0e5aac6

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

sentry_sdk/integrations/mcp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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(

uv.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)