We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bd912f commit efc1f85Copy full SHA for efc1f85
config/otel.php
@@ -33,9 +33,9 @@
33
],
34
35
/**
36
- * Ignore routes will not be traced. You can use `*` as wildcard.
+ * Ignore paths will not be traced. You can use `*` as wildcard.
37
*/
38
- 'ignore_routes' => [
+ 'ignore_paths' => [
39
// 'api/*',
40
// 'webhook/*',
41
src/Middlewares/MeasureRequest.php
@@ -22,8 +22,8 @@ class MeasureRequest
22
23
public function handle(Request $request, Closure $next, ?string $name = null)
24
{
25
- // skip if ignored by config `otel.ignore_routes`
26
- $ignoredRoutes = config('otel.ignore_routes', []);
+ // skip if ignored by config `otel.ignore_paths`
+ $ignoredRoutes = config('otel.ignore_paths', []);
27
if (Str::is($ignoredRoutes, $request->path())) {
28
return $next($request);
29
}
0 commit comments