newrelic-php

PHP zero-code newrelic-php-agent11.10.0.24

attach newrelic-install (newrelic extension + daemon)

4/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

Not compared with the uninstrumented PHP relay (no run on this site measured it on php 8.3.36).

Explanations

PHP: no gRPC server exists in any tracer-supported topology, so gRPC-inbound is undeliverable

app-limitation The official gRPC PHP implementation is client-only; the harness's Apache mod_php + CLI worker topology cannot accept gRPC calls, so grpc->* hops never run.

grpc.io's PHP quickstart: "You can only create gRPC clients in PHP. Use another language to create a gRPC server." (Restated in grpc/grpc #38481, open, filed by a Google engineer.) PHP can serve gRPC through a separate application server: RoadRunner's gRPC plugin (Go proxy → PHP workers) or Swoole-based frameworks such as Hyperf. But none of the tracers' zero-code instrumentation covers those paths: dd-trace-php's RoadRunner integration hooks the HTTP PSR7Worker only (Datadog's guidance for RoadRunner gRPC is manual dd_trace_method hooks, dd-trace-php #805); OTel has no roadrunner-grpc PHP instrumentation (RoadRunner's otel plugin traces in the Go proxy layer, not the PHP worker); Elastic and New Relic support neither.

The harness measures the documented Apache mod_php + two CLI workers topology, the supported deployment for all three tracers (dd-trace-php does not support php -S), so every grpc->* boundary is undelivered for every PHP variant including the baseline. A RoadRunner-based relay with manual instrumentation is a candidate follow-up (see the roadmap in DESIGN.md).

16 cells affected

php-no-grpc-server

PHP: no tool instruments the ext-grpc client, so every *->grpc leg is header-free

open Neither OTel PHP, dd-trace-php, Elastic PHP nor New Relic PHP hooks ext-grpc + grpc/grpc client calls; no metadata is injected on any *->grpc boundary.

Every *->grpc cell is header-free for otel, datadog, elastic and newrelic alike: the outbound gRPC client (ext-grpc + grpc/grpc) is not on any tool's instrumentation list, so nothing is injected into call metadata.

Datadog: dd-trace-php #916 is the canonical gRPC request, open since 2020 and marked "up-for-grabs" ("We do not have enough bandwidth to work on this integration during this quarter"); gRPC is absent from Datadog's PHP compatibility tables. OpenTelemetry: the opentelemetry-php-contrib instrumentation tree (30 auto-instrumentations) contains no gRPC entry. gRPC exists in the OTel PHP ecosystem only as the OTLP export transport; we found no issue proposing instrumentation of ext-grpc client calls. Elastic and New Relic list ext-grpc as unsupported.

Workaround: add the propagation headers to the call's metadata array yourself at every gRPC call site, using the tool's propagator/inject API.

6 cells affected

php-grpc-client-not-instrumented

Elastic APM and New Relic have no OpenTracing-era ot-baggage-* propagation

by-design ot-baggage-* is a legacy OpenTracing convention; Elastic APM and New Relic each define their propagation header set without it and offer no option that adds it.

The seeded ot-baggage-routing-key header is neither extracted nor re-emitted by any Elastic or New Relic variant on any delivered boundary. Neither tool writes the OpenTracing header format: Elastic's agent spec defines traceparent, tracestate, baggage and the binary elasticapmtraceparent; New Relic's distributed-tracing model is traceparent, tracestate and the vendor newrelic header. Neither documents a setting that adds ot-baggage-*.

The header outlives its deprecation only in Datadog's Java, Node and Go tracers, where it crosses all 16 boundaries as legacy behaviour of the datadog style (see datadog-ot-baggage-not-implemented for the Datadog tracers that do not carry it). Where a tool propagates W3C baggage, the same values travel there instead.

12 cells affected

ot-baggage-not-implemented

New Relic agents carry no W3C baggage on any boundary

by-design Baggage is not part of New Relic's distributed-tracing model (traceparent, tracestate, newrelic); no agent forwards the header and no feature request exists.

New Relic's "How distributed tracing works" defines the complete header model as exactly three headers: traceparent, tracestate and the vendor newrelic header. The seeded W3C baggage member is neither extracted nor re-emitted by any of the seven agents on any of the 16 boundaries, even where trace context continues perfectly (Python is 16/16 for trace context).

An org-wide search for "baggage" across all New Relic agent repositories returns three unrelated hits; no feature request for W3C baggage exists in any of the seven agent repos. New Relic carries no baggage on any protocol; an application that routes on it has to carry the header itself.

12 cells affected

newrelic-no-baggage

New Relic agents continue the trace but set the traceparent sampled flag from their own sampling decision

by-design A New Relic agent takes the trace id from traceparent but decides sampling itself unless an upstream New Relic agent's tracestate entry says otherwise; the flags byte it writes mirrors that decision, not the seeded 01.

Every New Relic pass on traceparent continues the seeded trace id, but the flags byte on the outbound header is the agent's own. The harness seeds 01 (sampled); what comes out is 00 on hops where the agent did not sample the transaction and 01 where it did. The W3C specification allows this: the sampled flag is a hint, and each participant may decide for itself.

New Relic's model carries the decision in its @nr tracestate entry (the sampled and priority fields). When an inbound request has an @nr entry from a trusted account, the agent adopts that decision; the harness seeds no @nr entry, so each agent decides with its own adaptive sampler and writes the result into both the @nr entry and the traceparent flags. Which hops come out 00 therefore varies by agent and by run.

The harness scores traceparent on the trace id only; the flags byte is recorded with each hop but not graded, so these cells pass. A W3C-only service downstream of a New Relic agent sees 00 on every request the agent did not sample, and may treat the trace as unsampled.

2 cells affected

newrelic-traceparent-flags-own-sampling

New Relic PHP does not instrument rdkafka; Kafka produce injects nothing

open The PHP agent's messaging support is php-amqplib publish only; rdkafka is unsupported, so no headers are injected into produced records.

newrelic-php-agent 12.10.0.39 is 2/16: http->http (curl) and http->rabbitmq (php-amqplib >= 3.7 publish instrumentation, agent >= 11.6) carry all three trace headers. rdkafka is unsupported, so http->kafka injects nothing; kafka->kafka and rabbitmq->kafka additionally fail on the consume side (see newrelic-php-cli-consumers-never-accept).

Docker footgun: newrelic-install symlinks the extension into the extracted tarball directory by default. Deleting the tarball leaves a dangling symlink and a silently uninstrumented app; build with NR_INSTALL_USE_CP_NOT_LN=1.

6 cells affected

newrelic-php-rdkafka-not-supported

New Relic PHP: long-running CLI consumers never accept inbound context

open The PHP agent has no rdkafka consume or php-amqplib consume instrumentation, so the CLI worker processes never start a transaction from message headers.

On newrelic-php-agent 12.10.0.39 every kafka->* and rabbitmq->* leg fails: the long-running CLI consumer workers never accept inbound context, so outbound calls after a consume carry no headers (no transaction is active). php-amqplib coverage is publish-side only, and rdkafka is unsupported entirely.

Workaround: in the consumer loop, start a background transaction with the agent API and accept the message headers manually. We found no upstream issue requesting consume-side support in the PHP agent.

16 cells affected

newrelic-php-cli-consumers-never-accept

Versions measured

Tracer
php_agent 11.10.0.24 reported as newrelic 11.10.0.24 newrelic-download github
Runtime
php 8.3.36
Setup tier
zero-code Runtime attach only: an agent flag, a preload require, the CLR profiler environment, a php.ini extension. No application source involved.
Attach
newrelic-install (newrelic extension + daemon)
Relay source
relays/php
Ran at
10 Nov 2026, 08:00 UTC
Harness
9b99070 · measured in backtest-newrelic-php-11.10.0.24
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
11.10.0.24.json → variants[id = "newrelic-php"]

Libraries

grpcext-grpc 1.85.0 / grpc/grpc 1.82.0
http_clientext-curl 8.14.1
kafkaext-rdkafka 6.0.5
rabbitmqphp-amqplib v3.7.4
serverapache2 mod_php / slim 4.15.3

Configuration

NEW_RELIC_APP_NAMErelay-newrelic-php
NEW_RELIC_DISTRIBUTED_TRACING_ENABLEDtrue

Evidence per hop

What the driver seeded and what the sink observed, one entry per boundary.

HTTP HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound HTTP request headers

baggage routing-key=rk-7f67e77b,team=alpha
ot-baggage-routing-key rk-7f67e77b
traceparent 00-62da781c8178a527b40e92e938ec8786-4a7781bed0f1a1c7-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-http--d5618aaf

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiIwYTMxZDdiOTVlOTk4NzQ3IiwidHIiOiI2MmRhNzgxYzgxNzhhNTI3YjQwZTkyZTkzOGVjODc4NiIsInR4IjoiN2IwMDg3N2RlY2I2ZGVkMCIsInByIjoxLjY4ODMwLCJzYSI6dHJ1ZSwidGkiOjE3OTQyOTc2NTkzODl9fQ==
traceparent 00-62da781c8178a527b40e92e938ec8786-0a31d7b95e998747-01
tracestate 8478732@nr=0-0-8478732-572413484-0a31d7b95e998747-7b00877decb6ded0-1-1.688297-1794297659389,cptest=v1
test id
newrelic-php--http-http--d5618aaf
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound HTTP request headers

baggage routing-key=rk-5c5e5558,team=alpha
ot-baggage-routing-key rk-5c5e5558
traceparent 00-c3ee6400b517ae549b8986fb565f5278-02388c109a23d68e-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-grpc--7a97ff81

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
user-agent grpc-php/1.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--http-grpc--7a97ff81
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-4fd7d988,team=alpha
ot-baggage-routing-key rk-4fd7d988
traceparent 00-9fc9924165a7ab67279cf86dd7191d6e-e25df22e94b1d883-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-kafka--8f9bc936

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--http-kafka--8f9bc936
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-add7da27,team=alpha
ot-baggage-routing-key rk-add7da27
traceparent 00-105ccec479a645f35924d8bbccf9e7c1-8fd4c4a96e43e0e0-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-rabbitmq--c3e7f0fe

Observed at the sink on the outbound AMQP 0-9-1 message headers

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiI5MzRlODkyZTI5MDkwMWE3IiwidHIiOiIxMDVjY2VjNDc5YTY0NWYzNTkyNGQ4YmJjY2Y5ZTdjMSIsInR4IjoiYjQyNzkyNWE3MjY0MjQyYSIsInByIjoxLjcxMjE1LCJzYSI6dHJ1ZSwidGkiOjE3OTQyOTc2NjA0NDh9fQ==
traceparent 00-105ccec479a645f35924d8bbccf9e7c1-934e892e290901a7-01
tracestate 8478732@nr=0-0-8478732-572413484-934e892e290901a7-b427925a7264242a-1-1.712153-1794297660448,cptest=v1
test id
newrelic-php--http-rabbitmq--c3e7f0fe
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage undelivered

Error: send: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.18.0.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-ecfc447a,team=alpha
ot-baggage-routing-key rk-ecfc447a
traceparent 00-fff64371d38357dc86f815866b99986d-bc07ae51f90b85bf-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-http--2b80dcb1

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
newrelic-php--grpc-http--2b80dcb1
raw statuses
baggage=—tracestate=—traceparent=—ot_baggage=—
gRPC gRPC baggage tracestate traceparent ot-baggage undelivered

Error: send: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.18.0.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-012138a8,team=alpha
ot-baggage-routing-key rk-012138a8
traceparent 00-fc7e2de614ade53d1f2c28e58c76c40b-e9fc0d3b49f05344-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-grpc--062553ec

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
newrelic-php--grpc-grpc--062553ec
raw statuses
baggage=—tracestate=—traceparent=—ot_baggage=—
gRPC Kafka baggage tracestate traceparent ot-baggage undelivered

Error: send: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.18.0.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-33a8ec61,team=alpha
ot-baggage-routing-key rk-33a8ec61
traceparent 00-866c23904665ef90c8dc6df0d8c08e5a-893174ca5e9faccc-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-kafka--3c76c685

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
newrelic-php--grpc-kafka--3c76c685
raw statuses
baggage=—tracestate=—traceparent=—ot_baggage=—
gRPC RabbitMQ baggage tracestate traceparent ot-baggage undelivered

Error: send: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 172.18.0.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-313772d7,team=alpha
ot-baggage-routing-key rk-313772d7
traceparent 00-82c4fc4004899f542f8c0cc6da629d93-068a067a3c7f6cc9-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-rabbitmq--2c36a097

Observed at the sink on the outbound AMQP 0-9-1 message headers

Nothing reached the sink.

test id
newrelic-php--grpc-rabbitmq--2c36a097
raw statuses
baggage=—tracestate=—traceparent=—ot_baggage=—
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-1d8f469e,team=alpha
ot-baggage-routing-key rk-1d8f469e
traceparent 00-a8b379bd555d3efb7c60feefe280ad21-cb0febcd532923bb-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-http--848243c4

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 48
content-type application/json
test id
newrelic-php--kafka-http--848243c4
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-07d9ed88,team=alpha
ot-baggage-routing-key rk-07d9ed88
traceparent 00-d3117b0299f4fbfe028c2abd06c570f1-d615c5a62bc48540-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-grpc--d5675e48

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
user-agent grpc-php/1.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--kafka-grpc--d5675e48
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-bbdb59d2,team=alpha
ot-baggage-routing-key rk-bbdb59d2
traceparent 00-6258fe05b5663e434f8e1221a9b310e1-b8ef5803dc136393-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-kafka--3b0e5ca3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--kafka-kafka--3b0e5ca3
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-1907a5bc,team=alpha
ot-baggage-routing-key rk-1907a5bc
traceparent 00-ca60f45ec030ecb68ecbe348aa5f7928-aeefd3efb2786532-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-rabbitmq--cdd921b6

Observed at the sink on the outbound AMQP 0-9-1 message headers

No headers observed.

test id
newrelic-php--kafka-rabbitmq--cdd921b6
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
RabbitMQ HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-cc6f7a4f,team=alpha
ot-baggage-routing-key rk-cc6f7a4f
traceparent 00-86e4555cff90eb252d48a8b25934bc76-f52d720466557228-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-http--af9bc05c

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 51
content-type application/json
test id
newrelic-php--rabbitmq-http--af9bc05c
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
RabbitMQ gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-bb9beddf,team=alpha
ot-baggage-routing-key rk-bb9beddf
traceparent 00-61844298b2e1ed0bf602534c40f6eb53-2f2bfd7d967767fc-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-grpc--34799958

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
user-agent grpc-php/1.85.0 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--rabbitmq-grpc--34799958
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
RabbitMQ Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-70726e41,team=alpha
ot-baggage-routing-key rk-70726e41
traceparent 00-25b6ad795db66b723e2f7cbb438b6df8-095674725bb8ac6a-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-kafka--53a19a14

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--rabbitmq-kafka--53a19a14
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
RabbitMQ RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-20267c20,team=alpha
ot-baggage-routing-key rk-20267c20
traceparent 00-a4acb436348b7942c088c03bf3d7cc4d-5af4edac71b294b8-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-rabbitmq--e56a8aa6

Observed at the sink on the outbound AMQP 0-9-1 message headers

No headers observed.

test id
newrelic-php--rabbitmq-rabbitmq--e56a8aa6
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

Cells are generated by the harness, never transcribed from documentation. Report a wrong one.