newrelic_insert_distributed_trace_headers (array $headers)
newrelic_insert_distributed_trace_headers to manually add distributed tracing headers an array of outbound headers.
When Distributed Tracing is enabled,
newrelic_insert_distributed_trace_headers will always insert W3C trace context headers. It also, by default, inserts the New Relic Distributed Tracing header, but this can be disabled via the
newrelic.distributed_tracing_exclude_newrelic_header INI setting.
|Required. An (optionally empty) array of outbound headers. This argument is passed by reference, and therefore must be a variable as opposed to a literal.|
True if any headers were successfully inserted into the provided array, otherwise returns