talentrydev/request-id-bundle
Adds a unique request ID to each incoming request so logs, responses, and error reports can be correlated. Exposes the ID through headers and middleware, making it simpler to trace requests across services. Lightweight drop-in integration for Laravel and PHP applications.
X-Request-ID is accepted from clients, generated server-side, or both; whether it is returned on error responses only or all responses; whether it is part of your public API guarantees.Consider it only when all of the following hold:
Look elsewhere (or build in-house) when:
traceparent), log-processor integration, async/queue propagation, or sampling, use an established observability SDK — those solve a superset and are actively maintained.Net: adopt as inspiration, not as infrastructure. The recommendation to engineering is to port the behavior into an owned package — roughly a day of work — and pin your own header and logging conventions.
For executives: This is a tiny, free utility that stamps a unique ID on every incoming request so that logs, errors, and support tickets can be tied back to a single user action. The capability is genuinely valuable — it measurably shortens incident triage and cuts "we can't reproduce it" support cycles. The artifact, however, is a zero-adoption Symfony bundle last touched in 2021, so I do not recommend taking it as a dependency. I recommend we adopt the convention and implement it ourselves as an internal standard.
For engineering: The package is a thin Symfony request/response listener that reads or generates a request ID and puts it on the response and into log context. Two caveats: (1) it is Symfony-only — Laravel services need equivalent middleware; (2) it is unmaintained since 2021 with no dependents, so treat it as a spec, not a dependency. Proposal: a shared internal package providing (a) accept-or-generate semantics for X-Request-ID, (b) echo on all responses including errors, (c) log processor injection, (d) propagation into queued jobs and outbound HTTP. That gives us one convention across frameworks, tests we control, and no bus-factor exposure on a 0-star repo.
Decision requested: Approve standardizing the request-ID convention and funding the small internal implementation, rather than adopting this bundle as-is.
How can I help you explore Laravel packages today?