Skip to content

Commit 0f3b1f4

Browse files
committed
fix telemetry matching
1 parent 6250ab5 commit 0f3b1f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function run(Container $context): static
552552
$attributes = [
553553
'url.scheme' => $request->getProtocol(),
554554
'http.request.method' => $request->getMethod(),
555-
'http.route' => $this->matchedRoute?->getPath(),
555+
'http.route' => $this->match($request)?->getPath() ?? '',
556556
'http.response.status_code' => $response->getStatusCode(),
557557
];
558558
$this->requestDuration->record($requestDuration, $attributes);

0 commit comments

Comments
 (0)