Skip to content

Commit c48ac23

Browse files
authored
Use only the path at the URI label (#6)
Update HttpClientMetricAspect.php
1 parent e0bf8ad commit c48ac23

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($uri),
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)