diff --git a/src/Livewire/SlowRequests.php b/src/Livewire/SlowRequests.php deleted file mode 100644 index 64a1748a..00000000 --- a/src/Livewire/SlowRequests.php +++ /dev/null @@ -1,71 +0,0 @@ -remember( - fn () => $this->aggregate( - 'slow_request', - ['max', 'count'], - match ($this->orderBy) { - 'count' => 'count', - default => 'max', - }, - )->map(function ($row) { - [$method, $uri, $action] = json_decode($row->key, flags: JSON_THROW_ON_ERROR); - - if (!is_string($action)){ - $action = ''; - } - - return (object) [ - 'uri' => $uri, - 'method' => $method, - 'action' => $action, - 'count' => $row->count, - 'slowest' => $row->max, - 'threshold' => $this->threshold($uri, SlowRequestsRecorder::class), - ]; - }), - $this->orderBy, - ); - - return View::make('pulse::livewire.slow-requests', [ - 'time' => $time, - 'runAt' => $runAt, - 'slowRequests' => $slowRequests, - 'config' => [ - 'threshold' => Config::get('pulse.recorders.'.SlowRequestsRecorder::class.'.threshold'), - 'sample_rate' => Config::get('pulse.recorders.'.SlowRequestsRecorder::class.'.sample_rate'), - ], - ]); - } -}