Skip to content

Commit efc1f85

Browse files
committed
ignored routes
1 parent 5bd912f commit efc1f85

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/otel.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
],
3434

3535
/**
36-
* Ignore routes will not be traced. You can use `*` as wildcard.
36+
* Ignore paths will not be traced. You can use `*` as wildcard.
3737
*/
38-
'ignore_routes' => [
38+
'ignore_paths' => [
3939
// 'api/*',
4040
// 'webhook/*',
4141
],

src/Middlewares/MeasureRequest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class MeasureRequest
2222
*/
2323
public function handle(Request $request, Closure $next, ?string $name = null)
2424
{
25-
// skip if ignored by config `otel.ignore_routes`
26-
$ignoredRoutes = config('otel.ignore_routes', []);
25+
// skip if ignored by config `otel.ignore_paths`
26+
$ignoredRoutes = config('otel.ignore_paths', []);
2727
if (Str::is($ignoredRoutes, $request->path())) {
2828
return $next($request);
2929
}

0 commit comments

Comments
 (0)