sbsedv/request-id-bundle
Symfony bundle that generates a unique request ID for each incoming request and propagates it through logs and responses, making it easier to trace errors and correlate activity across services. Configurable headers and ID generation support debugging in distributed applications.
Adopt it when most of the following are true:
SBSEDV Symfony bundle, not a Laravel package. If the application is Laravel, the native Context facade plus a middleware covers the same ground, and equivalent community packages exist — this assessment's adoption criteria carry over, the specific dependency does not.Look elsewhere when:
To executives: This is a small, low-risk dependency that makes every support ticket and incident reproducible. When a customer reports a failure, we can locate the exact request in our logs in seconds instead of reconstructing timelines by hand — that shortens outages and reduces support cost. It is a building block for the monitoring investments already on the roadmap, and the current release keeps us compatible with the newest Symfony version so it will not become upgrade debt.
To engineering: A maintained bundle that generates and propagates a request ID through the Symfony kernel and into your logging context, so Monolog lines, error reports, and downstream HTTP calls all carry the same identifier. Version 1.9.0 adds Symfony 8 support — no breaking changes, no new API surface, no action required beyond a routine bump. It replaces a small custom listener and Monolog processor with a versioned dependency, and it gives us a standard header convention for free. Trade-off to accept consciously: it is Symfony-only and not a substitute for real tracing — treat it as the correlation layer beneath OpenTelemetry, not a replacement for it. Recommend upgrading on the normal cadence and adding it to the Symfony 8 migration checklist as "already ready."
How can I help you explore Laravel packages today?