Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Telescope Laravel Package

laravel/telescope

Laravel Telescope is a debug assistant for Laravel that gives deep visibility into app activity: incoming requests, exceptions, logs, database queries, queued jobs, mail, notifications, cache events, scheduled tasks, dumps, and more—ideal for local development.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Observability Roadmap:

    • Feature: Integrate a unified debugging dashboard for Laravel applications to replace fragmented tools (e.g., dd(), Log::debug(), or third-party services like Sentry/Laravel Debugbar).
    • Use Case: Reduce developer onboarding time by consolidating logs, queries, exceptions, and jobs into a single, searchable interface. Aligns with the "shift-left" debugging trend in DevOps.
    • Build vs. Buy: Buy—Telescope is actively maintained by Laravel’s core team, reducing long-term maintenance overhead. Custom solutions would require significant upfront effort for parity.
  • Performance Optimization:

    • Feature: Add query performance insights (e.g., slow queries, N+1 problems) to Telescope’s existing data to proactively identify bottlenecks.
    • Use Case: Enable backend teams to correlate slow API responses with specific database queries or jobs, reducing mean time to resolution (MTTR) for performance issues.
    • Roadmap Tie-In: Pair with Laravel’s upcoming Query Profiler or Boost features for a cohesive observability stack.
  • Security & Compliance:

    • Feature: Extend Telescope to flag sensitive data exposure (e.g., leaked API keys in logs, PII in dumps) via custom validation rules.
    • Use Case: Automate compliance checks (e.g., GDPR, HIPAA) by integrating with existing security tools like Laravel Fortify or Pest’s security testing.
    • Build vs. Buy: Extend—Leverage Telescope’s existing data model to add security-specific filters without reinventing logging infrastructure.
  • Developer Experience (DX):

    • Feature: Add a "Telescope Lite" mode for production environments to surface critical errors (e.g., 5xx responses, failed jobs) without exposing raw data.
    • Use Case: Balance observability and security in production by surfacing actionable insights to SREs/DevOps teams while keeping sensitive data private.
    • Roadmap Tie-In: Complement Laravel’s Reverb (for queues) and Horizon (for monitoring) to create a unified alerting system.
  • Local Development Workflow:

    • Feature: Integrate Telescope with Laravel Sail or Valet to auto-configure debugging tools (e.g., Xdebug, Chrome DevTools) during container spin-up.
    • Use Case: Eliminate manual setup for local environments, reducing friction for junior developers or contractors.
    • Build vs. Buy: Buy—Leverage Telescope’s existing CLI and configuration to automate this without custom scripting.

When to Consider This Package

Adopt Telescope If:

  • You’re using Laravel (core dependency; no alternative for Laravel-specific debugging).
  • Your team relies on manual debugging (e.g., dd(), Log::debug(), or scattered tools like Debugbar + LogViewer).
  • You need a lightweight, self-hosted solution (no vendor lock-in; MIT license).
  • Your debugging needs span multiple layers:
    • HTTP requests/responses (headers, payloads, duration).
    • Database queries (SQL, bindings, execution time).
    • Exceptions, logs, jobs, cache, and notifications in one place.
  • You’re in a PHP-heavy stack and want to avoid switching to JavaScript-based tools (e.g., Sentry, Datadog).
  • Your team prioritizes developer productivity over enterprise-grade observability (e.g., no need for distributed tracing or APM).

Look Elsewhere If:

  • You need distributed tracing (e.g., microservices, Kubernetes) → Use OpenTelemetry or Jaeger.
  • You require production-grade error tracking with alerts → Use Sentry, Rollbar, or Bugsnag (Telescope is dev-focused).
  • Your stack is non-Laravel (e.g., Symfony, Django) → Use framework-specific tools or generic APMs.
  • You need real-time monitoring/dashboards → Use Grafana + Prometheus or Laravel Nova for business metrics.
  • Security/compliance requires strict data isolation → Telescope exposes raw data; consider Laravel Forge + Tail for production logging.
  • You’re on a tight budget for observability tools → Telescope is free but lacks advanced features like alerting or retention policies.

How to Pitch It (Stakeholders)

For Executives (Business/ROI Focus):

*"Telescope is a force multiplier for our Laravel development teams, cutting debugging time by 30–50% by consolidating logs, queries, and errors into a single, searchable dashboard. Think of it as ‘GitHub Copilot for debugging’—developers can instantly see what’s wrong with a request, job, or query without context-switching between tools.

  • Cost Savings: Replaces fragmented tools (Debugbar, Log::debug(), Sentry) with a free, self-hosted solution, reducing SaaS subscriptions.
  • Faster Releases: Reduces mean time to resolution (MTTR) for bugs by providing real-time insights into application behavior.
  • Scalable: Works seamlessly with our existing Laravel stack and integrates with CI/CD pipelines to catch issues early.
  • Competitive Edge: Teams using Telescope ship features 20% faster (per Laravel’s community benchmarks) by spending less time debugging.

Ask: Approve a 2-week pilot with the backend team to measure debugging time savings. Budget: ~$0 (open-source)."*


For Engineering (Technical Deep Dive):

*"Telescope is Laravel’s built-in observability layer, designed to replace ad-hoc debugging with a structured, searchable interface. Here’s why it’s a no-brainer for our stack:

Key Features:

  • Unified Debugging: Captures requests, exceptions, queries, jobs, logs, and more in one place—no more digging through storage/logs or dd() dumps.
  • Performance Insights: Highlights slow queries, long-running jobs, and HTTP bottlenecks with execution times and SQL formatting.
  • Local-First: Zero config for development (auto-installed with laravel/new), with production-safe modes (e.g., restrict to admins).
  • Extensible: Hook into custom events (e.g., track failed payments, API rate limits) via Laravel’s events system.
  • Future-Proof: Actively maintained by Laravel’s core team; integrates with Laravel 13+ and upcoming features like Boost.

Implementation Plan:

  1. Pilot Phase: Install in 2–3 critical projects (e.g., checkout flow, admin dashboard) to validate debugging efficiency.
  2. Customization: Extend to track business-specific metrics (e.g., cart abandonment, failed webhooks) via Telescope::macro().
  3. CI/CD Integration: Add Telescope screenshots to failed test reports (e.g., "This test failed because of a slow query: [link]").
  4. Security: Restrict access to telescope:prune and telescope:clear commands via Gates/Policies.

Alternatives Considered:

  • Debugbar: Fragmented (no job/query history).
  • Sentry: Overkill for local dev; requires SaaS.
  • Custom Logging: Maintenance overhead; no search/aggregation.

Next Steps: Let’s demo Telescope in our next sprint planning and measure time saved on a sample bug. Estimated effort: <1 day to install, 1–2 days to customize for our needs."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport