manomano-tech/correlation-ids
Correlation IDs for Laravel: generate a unique ID per request and propagate it through logs, HTTP clients and queued jobs so you can trace a single action across services. Lightweight middleware and helpers make setup quick with minimal configuration.
Consider only as a reference implementation, not a dependency:
Look elsewhere (strongly recommended):
For executives: Request correlation is a low-cost capability with high operational payoff — it shortens incident diagnosis by letting engineers follow a single request across services. We evaluated an open-source package for this and found it archived, unreleased since 2018, and unused by any other project. Recommendation: do not adopt it. Instead, budget a small, bounded internal effort (or adopt actively maintained OpenTelemetry tooling) to deliver the same capability with ongoing support and no maintenance risk. Net position: reuse the pattern, reject the dependency.
For engineering: This package demonstrates the canonical shape — generate or accept an incoming correlation ID, attach it to request-scoped log context, propagate it via headers to downstream calls. Treat it as a design reference only. We should implement this in-house (roughly a middleware plus a log processor, plus propagation in our HTTP client and queue workers) or standardize on OpenTelemetry so we inherit propagation standards rather than bespoke headers. It is not suitable as a dependency: archived status, no releases in seven years, no dependents, and unknown compatibility with current PHP/Laravel versions create avoidable risk for a capability we can own cheaply.
How can I help you explore Laravel packages today?