@@ -88,11 +88,11 @@ def test_sync_client_spans(
8888 span = spans [0 ]
8989 assert span ["attributes" ]["sentry.op" ] == "http.client"
9090 assert span ["name" ] == f"GET http://localhost:{ server_port } /hello"
91- assert span ["attributes" ]["url" ] == f"http://localhost:{ server_port } /hello"
91+ assert span ["attributes" ]["url.full " ] == f"http://localhost:{ server_port } /hello"
9292 assert span ["attributes" ][SPANDATA .HTTP_METHOD ] == "GET"
9393 assert span ["attributes" ][SPANDATA .HTTP_STATUS_CODE ] == 200
94- assert span ["attributes" ][SPANDATA .HTTP_QUERY ] == "q=test"
95- assert span ["attributes" ][SPANDATA .HTTP_FRAGMENT ] == "frag"
94+ assert span ["attributes" ][SPANDATA .URL_QUERY ] == "q=test"
95+ assert span ["attributes" ][SPANDATA .URL_FRAGMENT ] == "frag"
9696 assert span ["attributes" ]["sentry.origin" ] == "auto.http.pyreqwest"
9797 else :
9898 events = capture_events ()
@@ -145,7 +145,7 @@ async def test_async_client_spans(
145145 span = spans [0 ]
146146 assert span ["attributes" ]["sentry.op" ] == "http.client"
147147 assert span ["name" ] == f"GET { url } "
148- assert span ["attributes" ]["url" ] == url
148+ assert span ["attributes" ]["url.full " ] == url
149149 assert span ["attributes" ][SPANDATA .HTTP_METHOD ] == "GET"
150150 assert span ["attributes" ][SPANDATA .HTTP_STATUS_CODE ] == 200
151151 assert span ["attributes" ]["sentry.origin" ] == "auto.http.pyreqwest"
@@ -196,7 +196,7 @@ def test_sync_simple_request_spans(
196196 span = spans [0 ]
197197 assert span ["attributes" ]["sentry.op" ] == "http.client"
198198 assert span ["name" ] == f"GET { url } "
199- assert span ["attributes" ]["url" ] == url
199+ assert span ["attributes" ]["url.full " ] == url
200200 assert span ["attributes" ][SPANDATA .HTTP_METHOD ] == "GET"
201201 assert span ["attributes" ][SPANDATA .HTTP_STATUS_CODE ] == 200
202202 assert span ["attributes" ]["sentry.origin" ] == "auto.http.pyreqwest"
@@ -247,7 +247,7 @@ async def test_async_simple_request_spans(
247247 span = spans [0 ]
248248 assert span ["attributes" ]["sentry.op" ] == "http.client"
249249 assert span ["name" ] == f"GET { url } "
250- assert span ["attributes" ]["url" ] == url
250+ assert span ["attributes" ]["url.full " ] == url
251251 assert span ["attributes" ][SPANDATA .HTTP_METHOD ] == "GET"
252252 assert span ["attributes" ][SPANDATA .HTTP_STATUS_CODE ] == 200
253253 assert span ["attributes" ]["sentry.origin" ] == "auto.http.pyreqwest"
@@ -510,8 +510,8 @@ def test_omit_url_data_if_parsing_fails(
510510 assert span ["attributes" ][SPANDATA .HTTP_METHOD ] == "GET"
511511 assert span ["attributes" ][SPANDATA .HTTP_STATUS_CODE ] == 200
512512 assert "url" not in span ["attributes" ]
513- assert SPANDATA .HTTP_QUERY not in span ["attributes" ]
514- assert SPANDATA .HTTP_FRAGMENT not in span ["attributes" ]
513+ assert SPANDATA .URL_QUERY not in span ["attributes" ]
514+ assert SPANDATA .URL_FRAGMENT not in span ["attributes" ]
515515 else :
516516 events = capture_events ()
517517
@@ -530,8 +530,8 @@ def test_omit_url_data_if_parsing_fails(
530530 assert span ["data" ][SPANDATA .HTTP_METHOD ] == "GET"
531531 assert span ["data" ][SPANDATA .HTTP_STATUS_CODE ] == 200
532532 assert "url" not in span ["data" ]
533- assert SPANDATA .HTTP_QUERY not in span ["data" ]
534- assert SPANDATA .HTTP_FRAGMENT not in span ["data" ]
533+ assert SPANDATA .URL_QUERY not in span ["data" ]
534+ assert SPANDATA .URL_FRAGMENT not in span ["data" ]
535535
536536
537537@pytest .mark .parametrize ("span_streaming" , [True , False ])
0 commit comments