We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6250ab5 commit 0f3b1f4Copy full SHA for 0f3b1f4
1 file changed
src/Http/Http.php
@@ -552,7 +552,7 @@ public function run(Container $context): static
552
$attributes = [
553
'url.scheme' => $request->getProtocol(),
554
'http.request.method' => $request->getMethod(),
555
- 'http.route' => $this->matchedRoute?->getPath(),
+ 'http.route' => $this->match($request)?->getPath() ?? '',
556
'http.response.status_code' => $response->getStatusCode(),
557
];
558
$this->requestDuration->record($requestDuration, $attributes);
0 commit comments