vira/hpropagate
Vira HPropagate is a Laravel package for propagating selected HTTP headers to outgoing requests, helping keep correlation IDs and tracing context consistent across internal service calls. Simple configuration makes request context easier to forward.
x-request-id, x-correlation-id, B3 x-b3-*, W3C traceparent/tracestate). Adopting it lets you claim "end-to-end request tracing" for a fraction of the cost of an OpenTelemetry rollout.x-tenant-id, x-request-id, feature-flag/baggage headers downstream is what makes tenant-scoped debugging, per-tenant SLAs, and A/B assignment consistent across services.Authorization, cookies, PII), and where trust boundaries sit. This is a product/security decision the library forces you to make explicitly — good, because it's cheaper than retrofitting it during an audit.Consider it when all of the following hold:
Look elsewhere when:
TraceableHttpClient give you sampling, exporters, and span semantics this library does not.For executives — one paragraph: This is a small, single-purpose library that makes our services automatically pass request-identification headers along with every outbound call. The business payoff is cheaper incident triage (we can follow one customer request across services instead of guessing), better support answers, and a credible audit trail — without funding a full tracing platform. The cost is low (a spike, not a program). The risk is maturity: near-zero public adoption, so we should treat it as evaluate-and-fork, not standardize-and-depend, and cap the investment until the spike proves value.
For engineering: It slots into the HTTP client as middleware, so integration is config plus an allowlist, roughly an evaluation spike rather than a refactor. It gives us correlation IDs now and a clean seam to swap in OpenTelemetry later. Two caveats to design around: it's HTTP-only (queues and gRPC need separate handling) and it's a Symfony bundle, so confirm version support; if either bites, the fallback is ~a day of in-house middleware.
For product/security: The main decision it forces is header governance — an explicit allowlist of what may cross service boundaries, with auth tokens, cookies, and PII stripped at the edge. That policy is worth having regardless of whether we keep the library, and it's the cheapest time to write it.
Recommendation: Run a one-sprint spike in a non-critical Symfony service, fork the repo under our org, and gate wider adoption on two outcomes — measurable MTTR/correlation wins, and a signed-off header allowlist. If either is missing, keep the in-house middleware fallback.
How can I help you explore Laravel packages today?