Start free trial
Start free trial Log in

14-day free trial. No credit card.

Laravel Telescope in production: the honest answer

  • Glossary
  • 3 minute read

Can I run Laravel Telescope in production?

Technically yes, practically no for anything beyond a tiny app. Set to record everything, Telescope writes every request, query, job, and cache event into your database from the PHP worker, which at any real traffic bloats storage, adds load, and still gives you no aggregation or alerting. It's a debugger, not a monitoring tool. Use Laravel Nightwatch Cloud, NightOwl, or a dedicated APM instead.

Updated

Telescope is one of the best things about developing in Laravel and one of the worst things you can leave running in production, and the gap between those two facts catches a lot of teams out. The short version: it's a debugger, not a monitor. The longer version is worth understanding so you know exactly where the line sits and what to do if you've already crossed it.

What Telescope is designed for

Telescope is Laravel's official development debugger, a first-party package for inspecting requests, queries, jobs, cache events, and more during development and in staging. It's excellent at that job.

Production is a different problem. You don't need a per-request inspector with full payloads; you need aggregated views across thousands of requests per minute, long-term trending, grouped exceptions, and alerts when things regress.

Why it hurts in production

  • DB writes from the worker: every recorded request writes one row per entry to telescope_entries at the end of the request. That runs after the response is sent, but it still holds the PHP worker and loads your primary database.
  • Storage explosion: 1,000 req/min at 20 entries each = 28.8 million rows/day. Telescope's prune command helps but your primary DB shouldn't be a telemetry store.
  • No aggregation: no p95 per route, no fingerprint-grouped exceptions, no failure-rate trending. You inspect individual requests, not patterns.
  • No alerting: Telescope shows errors but won't page you.
  • Retention is up to you: telescope:prune deletes old entries (older than 24 hours by default), but only once you schedule it.
  • Access depends on one gate: outside local, /telescope is only open to users in the viewTelescope gate. It starts empty, and widening it carelessly exposes full request payloads.

If you're going to run it in production anyway

Low-traffic apps sometimes get away with it. Minimum protections:

app/Providers/TelescopeServiceProvider.php
use Illuminate\Support\Collection;
use Laravel\Telescope\IncomingEntry;
use Laravel\Telescope\Telescope;

public function register(): void
{
    // Sample: keep 10% of requests in production. filterBatch sees all
    // of one request's entries at once, so a request is kept or dropped
    // whole (Telescope::filter would drop individual entries instead).
    Telescope::filterBatch(function (Collection $entries) {
        if ($this->app->environment('local')) {
            return true;
        }

        if ($entries->contains(fn (IncomingEntry $entry) =>
            $entry->isReportableException()
            || $entry->isFailedRequest()
            || $entry->isFailedJob()
        )) {
            return true;
        }

        return random_int(1, 100) <= 10;
    });

    // Redact any sensitive request fields
    Telescope::hideRequestParameters(['password', 'password_confirmation', 'credit_card']);
    Telescope::hideRequestHeaders(['authorization', 'cookie', 'x-api-key']);
}

Keep the viewTelescope gate limited to the people who need it. Schedule telescope:prune --hours=48 hourly. Point Telescope's storage at a separate database connection (storage.database.connection in config/telescope.php) if you can. These mitigations make it tolerable, not good.

The alternatives

  • Laravel Nightwatch Cloud: official first-party, a free plan with 300K events/month and paid plans with larger monthly quotas.
  • NightOwl: BYOD PostgreSQL dashboard on the same Nightwatch instrumentation, from $5/month flat.
  • Sentry, Inspector.dev, Scout APM: generic or Laravel-aware APMs, various pricing models.

A common setup is Telescope locally and in staging, where it does its best work, and a dedicated APM in production.

Use Telescope locally and NightOwl in production

NightOwl uses the same laravel/nightwatch instrumentation, but a separate agent process writes the data to your own PostgreSQL, off your app's request path. It groups exceptions into issues and alerts you when a new one opens.

No credit card needed.

Frequently asked questions

Anything else, write to support@usenightowl.com

Can I run Laravel Telescope in production?

Technically yes, it installs and works. Practically no for anything beyond a tiny app. Outside the local environment, Telescope's default filter records only exceptions, failed requests, failed jobs, scheduled tasks and entries with monitored tags. Widen it to record everything (requests, queries, cache, jobs, mail) and it writes each request's entries into your database at the end of the request, in the same PHP process. At any real traffic that bloats your DB, adds load to every request, and still gives you no aggregation or alerting. It's designed for local and staging debugging, not production monitoring.

What's wrong with using Telescope in production?

Three issues. Performance: every recorded request writes its entries to your primary DB from the PHP worker, which adds load and contention. Scale: a busy app that records everything generates millions of telescope_entries rows per day, which blow out your DB storage. Features: no grouping, no trending, no alerts, no team-friendly issue management. Access is locked down by default: outside local, only users listed in the viewTelescope gate can open /telescope, and that list starts empty.

If Telescope isn't production-ready, what should I use?

Laravel Nightwatch Cloud (official first-party, with a free plan of 300K events/month), NightOwl (BYOD PostgreSQL dashboard from $5/month flat), or a generic APM like Sentry or Inspector. All three do what Telescope does for production scale (aggregation, alerting, retention policies, team workflows) and they keep that data out of the request path. NightOwl stores it in a PostgreSQL database you choose, which can be separate from your app's.

Is there a way to make Telescope production-safe?

You can sample (keep only a share of requests via Telescope::filterBatch), redact PII, and keep the viewTelescope gate strict, and plenty of teams do. It's still only a debugger in production; you're not getting aggregate views, alerting, or the team collaboration features you'd expect from a real monitoring product. For emergency debugging on a low-traffic app, sampled Telescope works. For a production monitoring layer, use a dedicated tool.

How is Telescope different from NightOwl?

Telescope writes telemetry into your primary DB inline with requests and gives you a per-request inspector. NightOwl ships data out-of-process via the NightOwl agent into a separate PostgreSQL and gives you aggregated production dashboards: exception grouping, query pattern p95, failed job counts, alert channels. Different tools for different jobs, and they combine well: Telescope locally, NightOwl in production.

Does Telescope impact request performance?

Yes. Telescope collects entries during the request and writes them to your database at the end of it, from the same PHP process. The cost depends on how many watchers are active, what the filter keeps and how busy your DB is. That's invisible in dev; at 1,000 req/min in production it compounds into real degradation and extra DB load. The Nightwatch package (used by Nightwatch Cloud and NightOwl) hands its records to a separate agent process instead, and Nightwatch puts its own overhead at under 3ms per request.

How do I uninstall Telescope from production safely?

Remove telescope:prune from your scheduler, remove the TelescopeServiceProvider from bootstrap/providers.php (or set TELESCOPE_ENABLED=false), drop the telescope_entries, telescope_entries_tags and telescope_monitoring tables after you confirm nothing is querying them, and remove laravel/telescope from composer.json. Deploy and monitor. DB load should drop immediately.

Keep reading

Flat pricing, whatever your traffic does

Every plan starts with a 14-day free trial. No credit card needed.

Hobby
$5 a month

One app for a side project. Issues and alerts, with a 14-day dashboard window.

Start my 14-day trial
TeamRecommended
$15 a month

Up to 3 apps and 5 people per team. Full history, the MCP server, data clearing and agent health.

Start my 14-day trial
Agency
$69 a month

Unlimited client apps and people, one overview of every app, and apps you can hand over.

Start my 14-day trial