Skip to content

Commit

Permalink
Merge pull request #6 from 0x3337/fix.uri
Browse files Browse the repository at this point in the history
Add a JaegerMiddleware skip if route is a fallback
  • Loading branch information
AidynMakhataev authored Jul 12, 2021
2 parents 1d9ea70 + 04dacdd commit b623531
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/JaegerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ public function __construct(Jaeger $jaeger)
*/
public function handle($request, Closure $next)
{
$httpMethod = $request->method();
$route = Route::getRoutes()->match($request);

if ($route->isFallback) {
return $next($request);
}

$httpMethod = $request->method();
$uri = $route->uri();

$headers = [];
Expand Down

0 comments on commit b623531

Please sign in to comment.