open-telemetry/opentelemetry-propagation-traceresponse
Adds TraceResponse propagation support to the OpenTelemetry PHP SDK, letting services extract and inject trace context using the draft TraceResponse format. Useful when integrating with systems that emit or expect this header, keeping distributed traces connected across service boundaries.
traceresponse header on HTTP responses, letting a client that receives a 202 Accepted (queued job, report generation, webhook ack) carry trace context back on a later poll/callback so the whole flow lands in one trace. It directly supports the decision "do we invest in end-to-end trace continuity across async flows, or stop at the request boundary?"traceresponse to keep moving.traceresponse on customer- or partner-facing responses is a contract decision, not just an internal one — once partners start correlating on it, removing it is a breaking change. This package makes that a one-line config toggle, which lowers the cost of piloting the header on a subset of endpoints before committing.Adopt it when:
open-telemetry/opentelemetry-auto-laravel) and have working traces. This package is an add-on, not a starting point.202, long-running exports, webhook-then-callback patterns, polling status endpoints.Look elsewhere when:
traceparent propagation already covers you; this adds nothing but config surface.traceresponse support in your JS/Python/mobile OTel SDKs first; otherwise you're standardizing on a header nobody on the other end reads.Maturity note for planning: the low stars/dependents number is not a quality signal about the code (it's small and spec-driven) but it is a signal about ecosystem support and bug-fix latency. Budget for the fork.
To executives (2 sentences): "This is a small, standards-based addition to the tracing we already pay for that closes a specific blind spot: when a customer's request kicks off background work, we currently lose the thread. It lets us prove what happened to that job — cutting investigation time on queue-related escalations — with no new vendor, no new infrastructure, and negligible cost."
To engineering leadership / staff engineers: "It's the W3C traceresponse propagator for the OpenTelemetry PHP SDK — a thin formatter/parser that registers alongside traceparent/baggage in the propagator list, plus a Laravel middleware and a queue hook to emit and read the header on 202-style flows. Risk is low and reversible: the code volume is tiny, our fallback is a 50-line in-house implementation, and nothing about it constrains our collector or backend choice. The one caveat is governance — the upstream repo is READONLY with a single-maintainer footprint and no dependents, so we pin the version and vendor the source into our stack rather than tracking upstream. Recommended scope for the first slice: one async status endpoint and one partner integration, measure whether trace continuity actually improves MTTR before rolling it out to the whole public API."
How can I help you explore Laravel packages today?