newrelic-php

PHP zero-code newrelic-php-agent12.13.0.43

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

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

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

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

63 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 in this run

Tracer
php_agent 12.13.0.43 reported as newrelic 12.13.0.43 this version newrelic-download github
Runtime
php 8.5.13
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
25 Nov 2026, 00:15 UTC
Harness
b33e402 · run run-2026-11-26
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-26.json → variants[id = "newrelic-php"]

Libraries

grpcext-grpc 1.85.4 / grpc/grpc 1.85.4
http_clientext-curl 8.14.1
kafkaext-rdkafka 6.0.5
rabbitmqphp-amqplib v3.7.5
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 native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-3e83f3ff,team=alpha
ot-baggage-routing-key rk-3e83f3ff
traceparent 00-9465e5309277aeee9f265665ddeb3535-f614bd9b80a584c1-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-http--da0a5232

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiJiYjQ1OThkMDQ4NTQ4MjNkIiwidHIiOiI5NDY1ZTUzMDkyNzdhZWVlOWYyNjU2NjVkZGViMzUzNSIsInR4IjoiMmJhNThhNjNlM2I4MjY0MiIsInByIjoxLjY5Njk3LCJzYSI6dHJ1ZSwidGkiOjE3OTU1NjU3NTY5MzR9fQ==
traceparent 00-9465e5309277aeee9f265665ddeb3535-bb4598d04854823d-01
tracestate 8478732@nr=0-0-8478732-572413484-bb4598d04854823d-2ba58a63e3b82642-1-1.696972-1795565756934,cptest=v1
test id
newrelic-php--http-http--da0a5232
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-3adb09e7,team=alpha
ot-baggage-routing-key rk-3adb09e7
traceparent 00-8e57cfdd35905d7ae52fa983383358d1-1ce4584dd90b4d34-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-grpc--714873a5

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.4 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--http-grpc--714873a5
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-5579f585,team=alpha
ot-baggage-routing-key rk-5579f585
traceparent 00-e3a5c6648a2dc5aa8049f55400a69c20-485949a1d864d7a6-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-kafka--03aecc35

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--http-kafka--03aecc35
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-477802c4,team=alpha
ot-baggage-routing-key rk-477802c4
traceparent 00-bc3345999e5dd10e9d433c3ab9d78c14-c201f4bd31f90609-01
tracestate cptest=v1
x-cp-canary newrelic-php--http-rabbitmq--67ddd271

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

newrelic eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODQ3ODczMiIsImFwIjoiNTcyNDEzNDg0IiwiaWQiOiJlYzE3NjExMTkyYThkMjQwIiwidHIiOiJiYzMzNDU5OTllNWRkMTBlOWQ0MzNjM2FiOWQ3OGMxNCIsInR4IjoiZDI0MDFhNjQ1NTU1ZDU5MiIsInByIjoxLjUyMzY3LCJzYSI6dHJ1ZSwidGkiOjE3OTU1NjU3NTY5ODF9fQ==
traceparent 00-bc3345999e5dd10e9d433c3ab9d78c14-ec17611192a8d240-01
tracestate 8478732@nr=0-0-8478732-572413484-ec17611192a8d240-d2401a645555d592-1-1.523668-1795565756981,cptest=v1
test id
newrelic-php--http-rabbitmq--67ddd271
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-5444fdc1,team=alpha
ot-baggage-routing-key rk-5444fdc1
traceparent 00-df90f9c68c6ab648fecc3f0a0141dd69-8ee4d651dd1acf4f-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-http--2d0a32d7

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
newrelic-php--grpc-http--2d0a32d7
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-428c7279,team=alpha
ot-baggage-routing-key rk-428c7279
traceparent 00-c5a98b966f42057ee88cf7ea7231e43e-2b6ed275878d1e42-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-grpc--9032834d

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
newrelic-php--grpc-grpc--9032834d
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-697b0b51,team=alpha
ot-baggage-routing-key rk-697b0b51
traceparent 00-6ce9f1bf76ec70726490da466a6fc20b-27d51e1c314722c3-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-kafka--3436f338

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
newrelic-php--grpc-kafka--3436f338
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-f4c7b4f3,team=alpha
ot-baggage-routing-key rk-f4c7b4f3
traceparent 00-0d3799c4729fb5578cda2e4287a1751a-6ce9da79278ae125-01
tracestate cptest=v1
x-cp-canary newrelic-php--grpc-rabbitmq--02167c43

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

Nothing reached the sink.

test id
newrelic-php--grpc-rabbitmq--02167c43
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-e9baa1be,team=alpha
ot-baggage-routing-key rk-e9baa1be
traceparent 00-6c06831cdcb1fe31fc1431bfe4119133-4e0c4c4305827f60-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-http--b53260f2

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 48
content-type application/json
test id
newrelic-php--kafka-http--b53260f2
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-c43fbf4a,team=alpha
ot-baggage-routing-key rk-c43fbf4a
traceparent 00-945b6871259a738b9bb473499a501784-5485420185eb84f6-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-grpc--93d28214

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.4 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--kafka-grpc--93d28214
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-d0889ff2,team=alpha
ot-baggage-routing-key rk-d0889ff2
traceparent 00-5b45d12a9309255acd1b88defcb1cac2-f553a767975c6e9d-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-kafka--99783924

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--kafka-kafka--99783924
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-de117f94,team=alpha
ot-baggage-routing-key rk-de117f94
traceparent 00-df2ff18eb118c3a996115b5f612895bc-6162d8876e4fd73e-01
tracestate cptest=v1
x-cp-canary newrelic-php--kafka-rabbitmq--6b5a0e8b

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

No headers observed.

test id
newrelic-php--kafka-rabbitmq--6b5a0e8b
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-2ba4a58c,team=alpha
ot-baggage-routing-key rk-2ba4a58c
traceparent 00-41878b4ea1aff53dc56e720666fde467-3f79ecdc38040da2-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-http--397aec79

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 51
content-type application/json
test id
newrelic-php--rabbitmq-http--397aec79
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-b11210d5,team=alpha
ot-baggage-routing-key rk-b11210d5
traceparent 00-4d5c9fcbb80c96014bac963006a9037e-f98ee27ee3a4f319-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-grpc--f8f569c8

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.4 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-php--rabbitmq-grpc--f8f569c8
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-d9af561e,team=alpha
ot-baggage-routing-key rk-d9af561e
traceparent 00-ab02613ec1af78ab750f4e5b40479d61-4e9eee79c51f6ebe-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-kafka--f543808f

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
newrelic-php--rabbitmq-kafka--f543808f
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-05fee6e2,team=alpha
ot-baggage-routing-key rk-05fee6e2
traceparent 00-c314909077da97fb80809813c3c3dbfd-d32001572b2c23b3-01
tracestate cptest=v1
x-cp-canary newrelic-php--rabbitmq-rabbitmq--129dcbae

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

No headers observed.

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

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