elastic-php

PHP zero-code elastic-apm-php1.13.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.13.0 reported as elastic_apm 1.13.0 1.13.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
9 Nov 2026, 19:47 UTC
Harness
9b99070 · measured in backtest-elastic-php-1.13.0
Raw JSON
1.13.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-965efcbd,team=alpha
ot-baggage-routing-key rk-965efcbd
traceparent 00-b7badc48940b758adf1801e4ccdccef6-a18a732b74a2fcdd-01
tracestate cptest=v1
x-cp-canary elastic-php--http-http--a19be3c4

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 46
content-type application/json
traceparent 00-b7badc48940b758adf1801e4ccdccef6-90ed8b19d22489e9-01
tracestate cptest=v1
test id
elastic-php--http-http--a19be3c4
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-8cdd1c09,team=alpha
ot-baggage-routing-key rk-8cdd1c09
traceparent 00-d5a894c862fea45087149d498706de47-3a9b773902e77cbd-01
tracestate cptest=v1
x-cp-canary elastic-php--http-grpc--ebf105ee

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--ebf105ee
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-74667243,team=alpha
ot-baggage-routing-key rk-74667243
traceparent 00-ad42f05b69f0fd6ae93be89092c95b02-83e7258cd741bc2d-01
tracestate cptest=v1
x-cp-canary elastic-php--http-kafka--e27dd066

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--http-kafka--e27dd066
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-f7ebb5f4,team=alpha
ot-baggage-routing-key rk-f7ebb5f4
traceparent 00-5143fd816cb6ddf6db4e30423d3150d9-fed5a3a0ca0544e2-01
tracestate cptest=v1
x-cp-canary elastic-php--http-rabbitmq--1c251d49

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

No headers observed.

test id
elastic-php--http-rabbitmq--1c251d49
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-505518dd,team=alpha
ot-baggage-routing-key rk-505518dd
traceparent 00-8db196db49a7ec6ba4ab8ff6ac6d7161-21057ed669d99914-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-http--fff2cbe9

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
elastic-php--grpc-http--fff2cbe9
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-bd1ac819,team=alpha
ot-baggage-routing-key rk-bd1ac819
traceparent 00-b4c65643f85012a8d2404a71e9bf9e89-6f671ad6037a7dd2-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-grpc--00dbd3ca

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
elastic-php--grpc-grpc--00dbd3ca
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-5b6c3882,team=alpha
ot-baggage-routing-key rk-5b6c3882
traceparent 00-9d4aeb312c69728ba4fe609ef55e1abb-f8d0d17b04d1e9dc-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-kafka--8b7d3fb6

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
elastic-php--grpc-kafka--8b7d3fb6
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-0d7a6e76,team=alpha
ot-baggage-routing-key rk-0d7a6e76
traceparent 00-2294b4ade9c3ae0e6d85d032a19a7c04-811aaf2ee2ee9f57-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-rabbitmq--2780e3be

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

Nothing reached the sink.

test id
elastic-php--grpc-rabbitmq--2780e3be
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-3356738e,team=alpha
ot-baggage-routing-key rk-3356738e
traceparent 00-fa5ee15e46336240b8d0e48d9ba69a78-739a6abe8567cc1e-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-http--f655dcbe

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-6b1658388dd5cab7bccb781c0c31d933-f33ef44bc3525fe2-01
tracestate es=s:1
test id
elastic-php--kafka-http--f655dcbe
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-7905c7df,team=alpha
ot-baggage-routing-key rk-7905c7df
traceparent 00-a7c167286b7193c3149833d361fcb4bb-e918cebaace016a2-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-grpc--dac360f3

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--dac360f3
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-529d85d1,team=alpha
ot-baggage-routing-key rk-529d85d1
traceparent 00-d8eb12ebe75699cdb53d3bc3c2346287-858d9c5cd0d5a425-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-kafka--cb650fb9

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--kafka-kafka--cb650fb9
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-809284f9,team=alpha
ot-baggage-routing-key rk-809284f9
traceparent 00-a57bb66c09c233f804057f4cee3b4a46-0edd14e02dc362fd-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-rabbitmq--f6a30984

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

No headers observed.

test id
elastic-php--kafka-rabbitmq--f6a30984
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-3b578f89,team=alpha
ot-baggage-routing-key rk-3b578f89
traceparent 00-50dc619130cabb88597fc48d72f450eb-ee55f74aec3cd2e5-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-http--7076a8f0

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 50
content-type application/json
traceparent 00-5b25c569b805299514b089ca1da05e66-189ab42d6d1486f8-01
tracestate es=s:1
test id
elastic-php--rabbitmq-http--7076a8f0
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-f5065a26,team=alpha
ot-baggage-routing-key rk-f5065a26
traceparent 00-b326d04c7bc96c5fe5ae0a5184b7fd99-5721da69ff97c2c3-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-grpc--8c6e4eda

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--8c6e4eda
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-1bd82a83,team=alpha
ot-baggage-routing-key rk-1bd82a83
traceparent 00-c4300f252b167537a5aa80cdf8e90147-ebf8474c1a93a019-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-kafka--18bc4bc9

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--rabbitmq-kafka--18bc4bc9
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-c7ba4026,team=alpha
ot-baggage-routing-key rk-c7ba4026
traceparent 00-446709522351c8e98c815d81c27c17cc-cdbf0d44b3300b56-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-rabbitmq--3df44ef1

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

No headers observed.

test id
elastic-php--rabbitmq-rabbitmq--3df44ef1
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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