newrelic-php

PHP zero-code newrelic-php-agent12.10.0.39

attach newrelic-install (newrelic extension + daemon)

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

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).

80 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; no issue proposes instrumenting ext-grpc client calls (filing candidate). 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.

30 cells affected

php-grpc-client-not-instrumented

OpenTelemetry, Elastic APM and New Relic never implemented the OpenTracing-era ot-baggage-* headers

by-design ot-baggage-* is a legacy OpenTracing convention; OpenTelemetry, Elastic APM and New Relic each define their propagation header set without it.

The seeded ot-baggage-routing-key header is ignored — neither extracted nor re-emitted — by every OpenTelemetry, Elastic and New Relic variant on every delivered boundary. None of these tools ever emitted the OpenTracing header format: OpenTelemetry standardised on W3C baggage; 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.

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.

356 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. If you route on baggage, New Relic contributes nothing on any protocol — carry it as an application header yourself.

108 cells affected

newrelic-no-baggage

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 worth knowing: 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 is dead: 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. Our references cite no upstream issue for consume-side support in the PHP agent.

16 cells affected

newrelic-php-cli-consumers-never-accept

Versions in this run

Tracer
php_agent 12.10.0.39 reported as newrelic 12.10.0.39 this version newrelic-download github
Runtime
php 8.3.33
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
7 Sept 2026, 11:01 UTC
Harness
commit not recorded · run run-2026-09-07
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-09-07.json → variants[id = "newrelic-php"]

Libraries

grpcext-grpc 1.83.1 / 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-37a69630,team=alpha
ot-baggage-routing-key rk-37a69630
traceparent 00-9e901b970dd79d48ae1c83ac3ef9c503-c05904311abc4653-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-http--fbf6425c

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiIyNTcwMmQzY2M2MWEyOWUxIiwidHIiOiI5ZTkwMWI5NzBkZDc5ZDQ4YWUxYzgzYWMzZWY5YzUwMyIsInR4IjoiYTdkNTdiY2UyODVlMjljMyIsInByIjoxLjc5Mzc4LCJzYSI6dHJ1ZSwidGkiOjE3ODg3Nzg4ODc1MTR9fQ==
traceparent 00-9e901b970dd79d48ae1c83ac3ef9c503-25702d3cc61a29e1-01
tracestate 8478732@nr=0-0-8478732-572413484-25702d3cc61a29e1-a7d57bce285e29c3-1-1.793780-1788778887514,cptest=v1
test id
newrelic-php--http-http--fbf6425c
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-5b883e3b,team=alpha
ot-baggage-routing-key rk-5b883e3b
traceparent 00-a918d4d8e8ce90810023a42fb81349d1-7d4f510a5905b976-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-grpc--006ea4b8

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.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-php--http-grpc--006ea4b8
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-518f3f34,team=alpha
ot-baggage-routing-key rk-518f3f34
traceparent 00-9e615a47860346b2187338d25faf9ccd-9e15fa706cef6e5a-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-kafka--958dc616

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--http-kafka--958dc616
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-98253461,team=alpha
ot-baggage-routing-key rk-98253461
traceparent 00-118342f63cdac0dcd4eb335722f06221-3730850603dce922-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-rabbitmq--17a0c4bf

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiJlYTdkZGExODU2NDQ2MjFkIiwidHIiOiIxMTgzNDJmNjNjZGFjMGRjZDRlYjMzNTcyMmYwNjIyMSIsInR4IjoiNjNjOGEwMWUwZGQzNTRhMyIsInByIjoxLjQyMDE0LCJzYSI6dHJ1ZSwidGkiOjE3ODg3Nzg4ODgwNDV9fQ==
traceparent 00-118342f63cdac0dcd4eb335722f06221-ea7dda185644621d-01
tracestate 8478732@nr=0-0-8478732-572413484-ea7dda185644621d-63c8a01e0dd354a3-1-1.420136-1788778888045,cptest=v1
test id
newrelic-php--http-rabbitmq--17a0c4bf
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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-b1fcef8a,team=alpha
ot-baggage-routing-key rk-b1fcef8a
traceparent 00-aa6d942ebd66903950e852edb8ff2e1e-79cc8ac85f910016-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-http--1ee37ff7

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
newrelic-php--grpc-http--1ee37ff7
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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-e8550a0b,team=alpha
ot-baggage-routing-key rk-e8550a0b
traceparent 00-bc5752cb82fd099a372efa83803e3240-66507a98eac642e9-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-grpc--21a38eae

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
newrelic-php--grpc-grpc--21a38eae
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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-c33092d0,team=alpha
ot-baggage-routing-key rk-c33092d0
traceparent 00-dedde339aa5995d5930835b71b24e991-08964659fcfffa31-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-kafka--21960176

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
newrelic-php--grpc-kafka--21960176
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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-95cba50c,team=alpha
ot-baggage-routing-key rk-95cba50c
traceparent 00-982f7434d1807b972de319c6c55d8799-f503b23e5fafa7d7-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-rabbitmq--845cd82b

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

Nothing reached the sink.

test id
newrelic-php--grpc-rabbitmq--845cd82b
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-b66caef0,team=alpha
ot-baggage-routing-key rk-b66caef0
traceparent 00-3eb5e0b1966f8ba9592968c76def6d3d-5bb3e53afb6eb90d-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-http--379f598c

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 48
content-type application/json
test id
newrelic-php--kafka-http--379f598c
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-850ba58f,team=alpha
ot-baggage-routing-key rk-850ba58f
traceparent 00-63e010fc60235226f3731e41df639c76-5860412ba3cbcb27-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-grpc--107e7c48

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.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-php--kafka-grpc--107e7c48
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-25db3525,team=alpha
ot-baggage-routing-key rk-25db3525
traceparent 00-8b61bf337b14e88b194e4168c43a8dd4-6821b5b3ed4263b3-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-kafka--25ea9108

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--kafka-kafka--25ea9108
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-f299f24c,team=alpha
ot-baggage-routing-key rk-f299f24c
traceparent 00-69f383cd473b59743053fb623bd7b5ff-114ac5595a5cfe21-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-rabbitmq--3cd8723c

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

No headers observed.

test id
newrelic-php--kafka-rabbitmq--3cd8723c
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-060dd960,team=alpha
ot-baggage-routing-key rk-060dd960
traceparent 00-d2d48ade9e2827d22e13c00512947e68-a4d3968261abbbdb-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-http--7a5f88cb

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 51
content-type application/json
test id
newrelic-php--rabbitmq-http--7a5f88cb
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-74526eed,team=alpha
ot-baggage-routing-key rk-74526eed
traceparent 00-9b7e674da7a053bb5a18cdc20e9c0446-2da203abe4ed5f09-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-grpc--e7222ed3

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.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-php--rabbitmq-grpc--e7222ed3
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-3d6ec645,team=alpha
ot-baggage-routing-key rk-3d6ec645
traceparent 00-8a18ca397c461ead8e245aa7bec0e060-121b58a2231ee5ee-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-kafka--d0b8f1a3

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--rabbitmq-kafka--d0b8f1a3
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-8694dd15,team=alpha
ot-baggage-routing-key rk-8694dd15
traceparent 00-2a855c0b019c0d549bca514566d26321-578d483dfb5cd96b-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-rabbitmq--189d591c

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

No headers observed.

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

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