signalfx / signalfx-php-tracing

OpenTracing-compatible Auto-Instrumentor for PHP (Deprecated)
https://docs.splunk.com/Observability/gdi/get-data-in/application/php/get-started.html
Other
18 stars 10 forks source link

Implement Server-Timing header with trace+span ID #136

Closed agoallikmaa closed 1 year ago

agoallikmaa commented 1 year ago

Adds Server-Timing (and Access-Control-Expose-Headers to expose it to browsers) header to response headers if SIGNALFX_TRACE_RESPONSE_HEADER_ENABLED is enabled (enabled by default for signalfx distribution) which contains traceparent as specified by W3C:

https://w3.org/TR/server-timing https://w3.org/TR/trace-context

For example: Server-Timing: traceparent;desc="00-009e48a5d5e5101549a8415a9d5786e1-018596472ae51569-01" Access-Control-Expose-Headers: Server-Timing