Skip to content

Commit eda7b1a

Browse files
.
1 parent 2ddc16f commit eda7b1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/pyreqwest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def _sentry_pyreqwest_span(request: "Request") -> "Generator[Any, None, None]":
8585
with capture_internal_exceptions():
8686
parsed_url = parse_url(str(request.url), sanitize=False)
8787

88-
client = sentry_sdk.get_client()
89-
if has_span_streaming_enabled(client.options):
88+
span_streaming = has_span_streaming_enabled(sentry_sdk.get_client().options)
89+
if span_streaming:
9090
with sentry_sdk.traces.start_span(
9191
name=f"{request.method} {parsed_url.url if parsed_url else SENSITIVE_DATA_SUBSTITUTE}",
9292
attributes={

0 commit comments

Comments
 (0)