Skip to content

Laravel Telescope in production: should you use it?

Published December 1, 2026 · Updated December 3, 2026

You can run Laravel Telescope in production, but it was built as a companion to local development, and it stays one. In production it needs three things: a gate that limits the dashboard to named users, a filter that records only exceptions, failed requests, failed jobs and slow queries, and a scheduled prune. Even then it sends no alert and lives on the server it observes.

What Telescope records

The official documentation describes Telescope as "a wonderful companion to your local Laravel development environment". It records what happens inside one request or one Artisan command through watchers, each enabled or disabled in config/telescope.php:

WatcherWhat it records
Requestthe request, headers, session and response data
Querythe raw SQL, the bindings and the execution time of every query
Exceptionthe data and stack trace of reportable exceptions
Job, Batchdispatched jobs, their data and status
Loglog entries, from the error level by default
Cache, Rediscache hits, misses, writes; Redis commands
Mail, Notificationsent mails (previewable, downloadable as .eml) and notifications
Model, Event, Gatemodel events, dispatched events, gate and policy checks
HTTP Clientoutgoing requests made with Laravel's HTTP client
Command, ScheduleArtisan commands and scheduled tasks, with their output
View, Dumprendered views and their data, dump() calls

This is exactly what makes it useful on your machine: you open /telescope, click a request, and see every query it ran with its bindings, the mail it sent and the job it queued. It is also exactly what makes it heavy in production, because all of that is stored, per entry, in your own database.

Installing it for local development only

The safest setup is the one the documentation gives for local use: install the package as a development dependency, so it never reaches a production composer install --no-dev.

composer require laravel/telescope --dev

php artisan telescope:install

php artisan migrate

telescope:install publishes the assets, the configuration and an App\Providers\TelescopeServiceProvider, and adds that provider to bootstrap/providers.php. For a local-only install, remove it from that file and register both providers yourself, only in the local environment, in the register() method of App\Providers\AppServiceProvider:

/**
 * Register any application services.
 */
public function register(): void
{
    if ($this->app->environment('local') && class_exists(\Laravel\Telescope\TelescopeServiceProvider::class)) {
        $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
        $this->app->register(TelescopeServiceProvider::class);
    }
}

The class_exists() check matters: in production the package is not installed, and the class does not exist. Then stop package auto-discovery from loading Telescope behind your back, in composer.json:

"extra": {
    "laravel": {
        "dont-discover": [
            "laravel/telescope"
        ]
    }
},

With this setup, production carries no Telescope code, no table writes and no dashboard route. That is the right default for most applications.

If you do run it in production

Some teams keep Telescope on a staging server, or on production for a short investigation. In that case, install it as a normal dependency (composer require laravel/telescope) and secure four things.

1. Authorization: the viewTelescope gate

The dashboard lives at /telescope (the path key, TELESCOPE_PATH). In the local environment anyone can open it. In every other environment, access goes through the viewTelescope gate defined in app/Providers/TelescopeServiceProvider.php:

use App\Models\User;
use Illuminate\Support\Facades\Gate;

/**
 * Register the Telescope gate.
 *
 * This gate determines who can access Telescope in non-local environments.
 */
protected function gate(): void
{
    Gate::define('viewTelescope', function (User $user) {
        return in_array($user->email, [
            'ops@example.com',
        ]);
    });
}

The documentation adds one warning worth reading twice: make sure APP_ENV is production on your production server. Otherwise, "your Telescope installation will be publicly available". A server left with APP_ENV=local serves every recorded request, header and query to whoever finds the URL.

2. Filtering: record only what you will read

The Telescope::filter() closure in the same provider decides which entries are written. The published provider records everything in local and, elsewhere, reportable exceptions, failed requests, failed jobs, scheduled tasks and tagged entries. To keep slow queries too, add isSlowQuery(), as the documentation does:

use Laravel\Telescope\IncomingEntry;
use Laravel\Telescope\Telescope;

/**
 * Register any application services.
 */
public function register(): void
{
    $this->hideSensitiveRequestDetails();

    Telescope::filter(function (IncomingEntry $entry) {
        if ($this->app->environment('local')) {
            return true;
        }

        return $entry->isReportableException() ||
            $entry->isFailedRequest() ||
            $entry->isFailedJob() ||
            $entry->isScheduledTask() ||
            $entry->isSlowQuery() ||
            $entry->hasMonitoredTag();
    });
}

Keep that filter. Removing the environment check is how a production table grows by one row per request, per query and per cache hit. If a request matters as a whole, Telescope::filterBatch() receives every entry of one request or command and keeps or drops them together.

You can also switch watchers off one by one, with the variables the configuration file reads (TELESCOPE_QUERY_WATCHER=false, TELESCOPE_MODEL_WATCHER=false, and so on), or stop all collection with TELESCOPE_ENABLED=false.

3. Sensitive data

The Request watcher stores headers, session and response data, and the Query watcher stores bindings: an email address in a where, a token in a header. The published provider calls hideSensitiveRequestDetails(), which, outside local, hides the _token parameter and the cookie, set-cookie, x-csrf-token and x-xsrf-token headers (see the stub on GitHub). Add your own fields to it with Telescope::hideRequestParameters() and Telescope::hideRequestHeaders(). Whatever is not hidden is stored in clear in your database, so it falls under your own retention and access rules.

4. Pruning

The documentation is direct: "Without pruning, the telescope_entries table can accumulate records very quickly". Schedule the prune command, in routes/console.php:

use Illuminate\Support\Facades\Schedule;

Schedule::command('telescope:prune')->daily();

By default it deletes entries older than 24 hours. telescope:prune --hours=48 keeps two days. Keep the window short: a long window means a large table, and a large table means slow dashboard pages and slow backups.

What it costs in production

The documentation gives no benchmark, and none is invented here. What follows comes from how Telescope works:

  • Every recorded entry is stored in the database, in batched inserts at the end of each request or command, by default on your application's own connection (DB_CONNECTION). Your production database therefore stores your production telemetry, and competes with your users for it.
  • The watchers still observe everything. The filter decides what is written, not what is looked at: the listeners run during each request and command.
  • Disk and backups grow with traffic. Without the prune, the table grows without bound; with it, the size follows your traffic over the retention window. Exclude telescope_entries from your backups if you do not need it.
  • The data is detailed and personal. Bindings, headers, session contents and mail bodies are exactly what a privacy policy has to account for.

What Telescope does not do

Telescope is a debugger. It answers "what happened in this request?". It does not answer "is something wrong right now?":

  • No alerts. Nothing pings you when an exception appears or a job fails. Somebody has to open the dashboard.
  • No view from outside. The data and the dashboard live on the server they observe. When the application, the database or the server is down, Telescope is down with it, at the moment you need it most.
  • No history beyond the prune window. With a 24-hour prune, yesterday's incident is gone by tomorrow.
  • One application at a time. Each app has its own /telescope. An agency with ten client projects has ten dashboards and no single list.
  • No aggregation. It shows entries one by one. It does not tell you that a page has been slow for a week or that a query runs in a loop on every call. For trends, see Laravel Pulse vs Telescope.

Telescope in production: when it is reasonable, and when it is not

Reasonable:

  • on a staging or preview server, with the gate in place, to reproduce a bug against real-looking data;
  • on production, for a limited investigation: enabled with TELESCOPE_ENABLED=true, the default filter kept, a short prune, then switched off again;
  • on a small internal application with little traffic, whose team accepts the extra table.

Not reasonable:

  • as your only way of knowing that production is failing: it sends no alert;
  • with the filter removed, on an application with real traffic;
  • with APP_ENV anything other than production on a public server;
  • as a substitute for logs you need to keep for weeks (see Laravel logging in production).

For most teams the working combination is Telescope locally, logs and an error tracker in production, and a performance view that aggregates instead of storing every query. If you are chasing a specific error, the Laravel 500 error guide starts from the log line; for loops of queries, see N+1 queries in Laravel.

With Quiet Guard

Quiet Guard covers what Telescope leaves out in production, and keeps the data off the server it watches. Every exception is grouped into an issue with its full stack trace and an alert on the first occurrence and on each regression (exception tracking, on every plan). Performance measurement aggregates pages, SQL queries, jobs and outgoing calls per minute, without storing any value, and opens N+1, slow query and slow page problems with one alert; it is included in the Indie and Studio plans. An uptime probe checks your site every five minutes from our servers, so you hear about an outage even when your own server is the one that fell.

composer require quiet-guard/laravel-monitor
MONITOR_KEY=your-project-api-key
MONITOR_PERFORMANCE=true

Details in the installation guide and the performance documentation.

If you are also weighing Laravel Nightwatch, our comparison page lists the differences with their sources.

In Quiet Guard

Exception tracking

Every exception your Laravel applications throw, grouped by cause rather than by occurrence, with the full stack trace and the commit that introduced it.

Performance monitoring

A slow page or an N+1 query raises no exception. Quiet Guard measures every request and every job of your Laravel applications, without sampling, and tells you which pages slow down and why.

Application logs

Your Laravel logs shipped as they happen, searchable by level and environment, and attached to the exception they surround.