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.
2 parents f63e0e1 + 7df374a commit 7888d04Copy full SHA for 7888d04
src/Concerns/TracesHttpRequests.php
@@ -148,7 +148,7 @@ private function calculateSpanName(Request $request): string
148
// includes the name of the route, if it has one.
149
$routeName = $route->getName();
150
151
- if (Str::startsWith($routeName, 'generated::')) {
+ if (($routeName !== null) && Str::startsWith($routeName, 'generated::')) {
152
// This is a route name generated by for a closure when caching
153
// routes. We don't want to include these in the trace, so we'll
154
// just set the name to null and default to the route path.
0 commit comments