@@ -63,12 +63,12 @@ public function testRequest(): void
6363 $ mockResponse = new MockResponse ();
6464 $ decoratedHttpClient = new MockHttpClient ($ mockResponse );
6565 $ httpClient = new TraceableHttpClient ($ decoratedHttpClient , $ this ->hub );
66- $ response = $ httpClient ->request ('GET ' , 'https://www.example.com/test-page ' );
66+ $ response = $ httpClient ->request ('GET ' , 'https://username:password@ www.example.com/test-page?foo=bar#baz ' );
6767
6868 $ this ->assertInstanceOf (AbstractTraceableResponse::class, $ response );
6969 $ this ->assertSame (200 , $ response ->getStatusCode ());
7070 $ this ->assertSame ('GET ' , $ response ->getInfo ('http_method ' ));
71- $ this ->assertSame ('https://www.example.com/test-page ' , $ response ->getInfo ('url ' ));
71+ $ this ->assertSame ('https://username:password@ www.example.com/test-page?foo=bar#baz ' , $ response ->getInfo ('url ' ));
7272 $ this ->assertSame (['sentry-trace: ' . $ transaction ->toTraceparent ()], $ mockResponse ->getRequestOptions ()['normalized_headers ' ]['sentry-trace ' ]);
7373 $ this ->assertArrayNotHasKey ('baggage ' , $ mockResponse ->getRequestOptions ()['normalized_headers ' ]);
7474 $ this ->assertNotNull ($ transaction ->getSpanRecorder ());
@@ -82,7 +82,7 @@ public function testRequest(): void
8282 $ this ->assertCount (2 , $ spans );
8383 $ this ->assertNull ($ spans [1 ]->getEndTimestamp ());
8484 $ this ->assertSame ('http.client ' , $ spans [1 ]->getOp ());
85- $ this ->assertSame ('HTTP GET ' , $ spans [1 ]->getDescription ());
85+ $ this ->assertSame ('GET https://www.example.com/test-page ' , $ spans [1 ]->getDescription ());
8686 $ this ->assertSame ($ expectedTags , $ spans [1 ]->getTags ());
8787 }
8888
@@ -130,7 +130,7 @@ public function testRequestDoesNotContainBaggageHeader(): void
130130 $ this ->assertCount (2 , $ spans );
131131 $ this ->assertNull ($ spans [1 ]->getEndTimestamp ());
132132 $ this ->assertSame ('http.client ' , $ spans [1 ]->getOp ());
133- $ this ->assertSame ('HTTP PUT ' , $ spans [1 ]->getDescription ());
133+ $ this ->assertSame ('PUT https://www.example.com/test-page ' , $ spans [1 ]->getDescription ());
134134 $ this ->assertSame ($ expectedTags , $ spans [1 ]->getTags ());
135135 }
136136
@@ -178,7 +178,7 @@ public function testRequestDoesContainBaggageHeader(): void
178178 $ this ->assertCount (2 , $ spans );
179179 $ this ->assertNull ($ spans [1 ]->getEndTimestamp ());
180180 $ this ->assertSame ('http.client ' , $ spans [1 ]->getOp ());
181- $ this ->assertSame ('HTTP POST ' , $ spans [1 ]->getDescription ());
181+ $ this ->assertSame ('POST https://www.example.com/test-page ' , $ spans [1 ]->getDescription ());
182182 $ this ->assertSame ($ expectedTags , $ spans [1 ]->getTags ());
183183 }
184184
@@ -214,7 +214,7 @@ public function testStream(): void
214214 $ this ->assertCount (2 , $ spans );
215215 $ this ->assertNotNull ($ spans [1 ]->getEndTimestamp ());
216216 $ this ->assertSame ('http.client ' , $ spans [1 ]->getOp ());
217- $ this ->assertSame ('HTTP GET ' , $ spans [1 ]->getDescription ());
217+ $ this ->assertSame ('GET https://www.example.com/test-page ' , $ spans [1 ]->getDescription ());
218218 $ this ->assertSame ($ expectedTags , $ spans [1 ]->getTags ());
219219
220220 $ loopIndex = 0 ;
0 commit comments