File tree Expand file tree Collapse file tree
tests/integrations/pyreqwest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22from typing import Any , Generator
33
44import sentry_sdk
5- from sentry_sdk .scope import should_send_default_pii
65from sentry_sdk import start_span
76from sentry_sdk .consts import OP , SPANDATA
87from sentry_sdk .integrations import DidNotEnable , Integration
8+ from sentry_sdk .scope import should_send_default_pii
99from sentry_sdk .traces import StreamedSpan
1010from sentry_sdk .tracing import BAGGAGE_HEADER_NAME
1111from sentry_sdk .tracing_utils import (
Original file line number Diff line number Diff line change @@ -96,7 +96,10 @@ def test_sync_client_spans(
9696 assert span ["attributes" ]["sentry.origin" ] == "auto.http.pyreqwest"
9797
9898 if send_default_pii :
99- assert span ["attributes" ]["url.full" ] == f"http://localhost:{ server_port } /hello"
99+ assert (
100+ span ["attributes" ]["url.full" ]
101+ == f"http://localhost:{ server_port } /hello"
102+ )
100103 assert span ["attributes" ][SPANDATA .URL_QUERY ] == "q=test"
101104 assert span ["attributes" ][SPANDATA .URL_FRAGMENT ] == "frag"
102105 else :
You can’t perform that action at this time.
0 commit comments