bilfeldt/laravel-correlation-id
Laravel middleware that ensures every request has a globally unique Correlation-ID (and echoes any client Request-ID), adds them to the request/response headers, and injects both into the global log context for easier tracing across services, APIs, and jobs.
Adopt if:
X-Request-ID in responses).Look Elsewhere if:
For Executives: "This package adds a lightweight, zero-boilerplate solution to trace every user request across our Laravel services—like a digital breadcrumb trail for debugging. By automatically attaching unique IDs to logs, errors, and API calls, we’ll slash the time spent diagnosing issues in production, especially in distributed systems. It’s a low-risk, high-reward upgrade that aligns with our observability goals and compliance needs, with minimal dev effort."
For Engineering/DevOps: *"This middleware handles correlation IDs and request tracing for us out-of-the-box, saving weeks of custom development. It:
Kernel.php and Handler.php, and we’re done. No reinventing the wheel—just plug-and-play observability."*For Developers: *"This package lets us:
Kernel.php, tweak Handler.php for errors, and we’re good. It’s MIT-licensed, actively maintained, and integrates with Laravel’s built-in logging system."*How can I help you explore Laravel packages today?