elastic-php

PHP zero-code elastic-apm-php1.15.0

attach apm-agent-php .deb (elastic_apm extension)

2/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

Elastic Node, Python, Ruby and PHP agents do not propagate W3C baggage on any boundary

open Only Elastic's Java agent (and .NET over HTTP/gRPC) implements the baggage propagation the agent spec mandates; these agents drop it on every boundary.

Elastic's agent spec mandates baggage support, but only the Java agent delivers it end-to-end. elastic-apm-node 4.18.0 has no W3C baggage implementation; elastic-apm (Python) 6.26.2, elastic-apm (Ruby) 4.9.0 and elastic_apm (PHP) 1.17.0 measure baggage absent on every boundary, including http->http where traceparent/tracestate continue. The seeded member is neither extracted nor re-emitted.

Outside Java, Elastic APM cannot currently carry application baggage across protocol boundaries; a user must forward the baggage header as an application header themselves. Elastic's Node distributed-tracing docs likewise describe manual traceparent passing only (no tracestate or baggage). We found no upstream issue requesting W3C baggage in these agents.

12 cells affected

elastic-agents-no-w3c-baggage

Elastic PHP: Kafka and RabbitMQ are not supported technologies; only http->http propagates

open elastic_apm instruments neither rdkafka nor php-amqplib: nothing is injected on produce/publish and consumed messages start a fresh trace on the outbound leg.

On elastic_apm 1.17.0 (PHP 8.3, Apache mod_php + CLI workers) only http->http propagates traceparent/tracestate. Kafka and RabbitMQ are not in the agent's supported-technologies list: http->kafka and http->rabbitmq inject nothing, and the CLI consumers do not extract, so kafka->http and rabbitmq->http start a fresh trace (new trace-id, the foreign tracestate entry lost) while kafka->kafka, kafka->rabbitmq, rabbitmq->kafka and rabbitmq->rabbitmq carry nothing.

gRPC-outbound legs are covered separately (php-grpc-client-not-instrumented) and gRPC-inbound is undeliverable in this topology (php-no-grpc-server). We found no upstream issue requesting messaging support in this agent.

20 cells affected

elastic-php-messaging-not-supported

Versions measured

Tracer
elastic/apm-agent-php 1.15.0 reported as elastic_apm 1.15.0 1.15.0 on github-releases 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
apm-agent-php .deb (elastic_apm extension)
Relay source
relays/php
Ran at
1 Nov 2026, 06:14 UTC
Harness
e793604 · measured in backtest-elastic-php-1.15.0
Raw JSON
1.15.0.json → variants[id = "elastic-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

ELASTIC_APM_SERVICE_NAMErelay-elastic-php

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-ae438ae0,team=alpha
ot-baggage-routing-key rk-ae438ae0
traceparent 00-acc460bcfcfa93321d848347755750ba-29bf8e13257b149e-01
tracestate cptest=v1
x-cp-canary elastic-php--http-http--af7f79da

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 46
content-type application/json
traceparent 00-acc460bcfcfa93321d848347755750ba-cef6f061e8367086-01
tracestate cptest=v1
test id
elastic-php--http-http--af7f79da
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-e6115ff3,team=alpha
ot-baggage-routing-key rk-e6115ff3
traceparent 00-1140d4f791058027f3058cd8de29beed-9483cb11f461abac-01
tracestate cptest=v1
x-cp-canary elastic-php--http-grpc--b66c2a10

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
elastic-php--http-grpc--b66c2a10
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-41065019,team=alpha
ot-baggage-routing-key rk-41065019
traceparent 00-2997e8a71ce58b8a4fe38ef57dbdc14a-283dff4d87578387-01
tracestate cptest=v1
x-cp-canary elastic-php--http-kafka--398d17ab

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--http-kafka--398d17ab
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-cdf7b6bf,team=alpha
ot-baggage-routing-key rk-cdf7b6bf
traceparent 00-4e0674bcbee2073143bde03e3d247efe-81c341dabc528e0e-01
tracestate cptest=v1
x-cp-canary elastic-php--http-rabbitmq--97cd646c

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

No headers observed.

test id
elastic-php--http-rabbitmq--97cd646c
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_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-3f207581,team=alpha
ot-baggage-routing-key rk-3f207581
traceparent 00-a8083bea089a5da7ef7202dd1eb10b76-14aef0c50ec9915a-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-http--8d76f508

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
elastic-php--grpc-http--8d76f508
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-fb31a941,team=alpha
ot-baggage-routing-key rk-fb31a941
traceparent 00-dda53c23712da22ca3499d15c9d3b556-cb78ab6bb4c7e3d5-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-grpc--663952f8

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
elastic-php--grpc-grpc--663952f8
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-9e3b0087,team=alpha
ot-baggage-routing-key rk-9e3b0087
traceparent 00-f32c8a13c92783642064380f6a28a37a-3fed26807653b0f2-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-kafka--ebbf3f63

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
elastic-php--grpc-kafka--ebbf3f63
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-874dffbc,team=alpha
ot-baggage-routing-key rk-874dffbc
traceparent 00-581166a2234ebadd1b69c18ddc18fda7-a36b0dd5afe6ac10-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-rabbitmq--72c4d101

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

Nothing reached the sink.

test id
elastic-php--grpc-rabbitmq--72c4d101
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-c5f8f020,team=alpha
ot-baggage-routing-key rk-c5f8f020
traceparent 00-bb49a94fc09717acf56c58a3cd39ad71-eb8962b5c5139b5d-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-http--964b06e6

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-5dca82971edcc0efe2b0525306c3d7ef-46876bcf8d34e65d-01
tracestate es=s:1
test id
elastic-php--kafka-http--964b06e6
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-8ae9b832,team=alpha
ot-baggage-routing-key rk-8ae9b832
traceparent 00-02f7dd58e1e40b6eda3243973e5e757e-6d005207ee6dc42e-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-grpc--d305e53d

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
elastic-php--kafka-grpc--d305e53d
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-8382aff9,team=alpha
ot-baggage-routing-key rk-8382aff9
traceparent 00-ce629341e41a6bbfcef79e08d35390c9-a3502960694f07ec-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-kafka--b142ec8c

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--kafka-kafka--b142ec8c
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-e469d158,team=alpha
ot-baggage-routing-key rk-e469d158
traceparent 00-3b4b2e17f329386679dff4b10609feb5-99b703d8b8f473bc-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-rabbitmq--831ad8db

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

No headers observed.

test id
elastic-php--kafka-rabbitmq--831ad8db
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-86c15677,team=alpha
ot-baggage-routing-key rk-86c15677
traceparent 00-301177902a37e9cdbd334c9bee3836fd-c42bb89bbe823223-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-http--55713bae

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 50
content-type application/json
traceparent 00-791d3065c44a309f9f32b06c7c8b324b-87230163fa9355d9-01
tracestate es=s:1
test id
elastic-php--rabbitmq-http--55713bae
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_traceot_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-e62cfb38,team=alpha
ot-baggage-routing-key rk-e62cfb38
traceparent 00-e1399935219201e89eb1731dd845991f-924c171dfa7a27e4-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-grpc--0e400039

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
elastic-php--rabbitmq-grpc--0e400039
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-cd2cdac8,team=alpha
ot-baggage-routing-key rk-cd2cdac8
traceparent 00-40cd7996438891cf4a5c5c010e7dc76f-fac3d5785502bd87-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-kafka--d5736576

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--rabbitmq-kafka--d5736576
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-730460b6,team=alpha
ot-baggage-routing-key rk-730460b6
traceparent 00-b9bf3c5b922a20f236259c3be2d7ab8f-1c49022339130b70-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-rabbitmq--331a99d6

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

No headers observed.

test id
elastic-php--rabbitmq-rabbitmq--331a99d6
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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