Laravel Observability with TraceKit
Laravel's elegance hides complexity -- queued jobs run on separate workers, Eloquent can generate N+1 queries behind accessors, and event/listener chains can create invisible cascades. TraceKit traces it all. Also works with vanilla PHP and Symfony apps.
Laravel observability challenges
Common problems that Laravel developers face in production -- and how TraceKit solves them.
Queue Job Tracing Across Workers
Laravel queues dispatch jobs to separate worker processes, breaking trace continuity. A controller action that dispatches three jobs becomes invisible once they hit the queue. TraceKit propagates trace context through the queue so the entire flow is one trace.
Eloquent N+1 Query Detection
Eloquent makes it easy to trigger N+1 queries through accessors, appends, and relationship loading. TraceKit captures every Eloquent query in the trace, making N+1 patterns immediately visible -- even behind lazy-loaded relationships.
Event/Listener Chain Debugging
Laravel events can trigger chains of listeners, each potentially dispatching more events. When a listener fails or is slow, tracing the chain manually is painful. TraceKit instruments event dispatching so you see the full cascade.
Get started in minutes
Add OpenTelemetry instrumentation to your Laravel app with a few lines of code.
// config/tracekit.php (via Laravel service provider)
use OpenTelemetry\SDK\Trace\TracerProviderBuilder;
use OpenTelemetry\Contrib\Otlp\SpanExporter;
return [
'service_name' => env('OTEL_SERVICE_NAME', 'my-laravel-app'),
'exporter_endpoint' => env('OTEL_EXPORTER_OTLP_ENDPOINT'),
];PHP Distributed Tracing Guide
Go deeper with our PHP distributed tracing guide -- covering common pain points, production patterns, and code examples.
What you get with TraceKit
Distributed Tracing
Trace requests from Laravel routes through Eloquent queries, queued jobs, event listeners, and external API calls. Full PHP observability.
Live Code Monitoring
Set breakpoints in your Laravel controllers and jobs. Inspect Eloquent models, request data, and queue payloads in production without redeploying.
Simple Pricing
$29/month flat for your entire Laravel application. No per-worker fees for queue processing, no per-request charges -- one price for full observability.
Related Resources
Learn distributed tracing patterns and best practices for Go
Open-source session replay and full-stack observability. See how TraceKit compares with production-proven APM.
Calculate SLA uptime and error budgets for your services
Step-by-step APM implementation checklist covering SDK installation, instrumentation, alerting, and production rollout with OpenTelemetry best practices.
Step-by-step guide to migrate from Datadog to TraceKit. Replace dd-trace with TraceKit SDK, map environment variables, and verify traces in minutes.
Ready to add observability to Laravel?
Get started with TraceKit in under 5 minutes. $29/month flat -- no per-host fees, no surprises.