Skip to content

Commit 25e2567

Browse files
Assumes the root path (/) for urls without declared paths (#8)
1 parent 6804d04 commit 25e2567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Aspect/HttpClientMetricAspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
4545
$host = $base_uri === null ? (parse_url($uri, PHP_URL_HOST) ?? '') : $base_uri->getHost();
4646

4747
$labels = [
48-
'uri' => SupportUri::sanitize(parse_url($uri, PHP_URL_PATH)),
48+
'uri' => SupportUri::sanitize(parse_url($uri, PHP_URL_PATH) ?? '/'),
4949
'host' => $host,
5050
'method' => $method,
5151
'http_status_code' => '200',

0 commit comments

Comments
 (0)