elastic-php

PHP zero-code elastic-apm-php1.17.0

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

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

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). Our references record no upstream issue requesting W3C baggage in these agents.

60 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). Our references cite no upstream issue for PHP messaging support in this agent.

20 cells affected

elastic-php-messaging-not-supported

Versions in this run

Tracer
elastic/apm-agent-php 1.17.0 reported as elastic_apm 1.17.0 this version 1.17.0 on github-releases 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
apm-agent-php .deb (elastic_apm extension)
Relay source
relays/php
Ran at
7 Sept 2026, 10:57 UTC
Harness
commit not recorded · run run-2026-09-07
Raw JSON
run-2026-09-07.json → variants[id = "elastic-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

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-7d9b6866,team=alpha
ot-baggage-routing-key rk-7d9b6866
traceparent 00-354d013948022c811bc12eb74fd11116-c2b7fa0f35d24833-01
tracestate cptest=v1
x-cp-canary elastic-php--http-http--35ab092f

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 46
content-type application/json
traceparent 00-354d013948022c811bc12eb74fd11116-7d747c90d4f51256-01
tracestate cptest=v1
test id
elastic-php--http-http--35ab092f
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-04eaf9eb,team=alpha
ot-baggage-routing-key rk-04eaf9eb
traceparent 00-15baa41124c2e6ad09af715ac0dd3138-5a545c0df5c3665f-01
tracestate cptest=v1
x-cp-canary elastic-php--http-grpc--c644e671

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
elastic-php--http-grpc--c644e671
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-90428c5d,team=alpha
ot-baggage-routing-key rk-90428c5d
traceparent 00-5929e18e80100fc6c6cefafb84adf547-4db1bb515abf2a69-01
tracestate cptest=v1
x-cp-canary elastic-php--http-kafka--f81012ca

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--http-kafka--f81012ca
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-e7b588d6,team=alpha
ot-baggage-routing-key rk-e7b588d6
traceparent 00-4e437d88936e04e2ac805a8eb3ca11f1-30e7034cb6b5d7f8-01
tracestate cptest=v1
x-cp-canary elastic-php--http-rabbitmq--11011dfd

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

No headers observed.

test id
elastic-php--http-rabbitmq--11011dfd
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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-41b29433,team=alpha
ot-baggage-routing-key rk-41b29433
traceparent 00-819bf9414bc69c366d952e8767126f7a-f7ff84728aa909a7-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-http--3c8c12f6

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
elastic-php--grpc-http--3c8c12f6
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-aaa2c007,team=alpha
ot-baggage-routing-key rk-aaa2c007
traceparent 00-25d2ddef53fda6d24920a52f440d959d-208fd2d817eee910-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-grpc--627732f8

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
elastic-php--grpc-grpc--627732f8
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-aa790815,team=alpha
ot-baggage-routing-key rk-aa790815
traceparent 00-36b8bf42b659e44ccd6952b677dc61d3-15eebab660e668ed-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-kafka--4bdfe434

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
elastic-php--grpc-kafka--4bdfe434
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-2e2dd3e1,team=alpha
ot-baggage-routing-key rk-2e2dd3e1
traceparent 00-c58afcc6f1a1641de292534cdd9fa65f-2843fdc0326f3adc-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-rabbitmq--2d196822

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

Nothing reached the sink.

test id
elastic-php--grpc-rabbitmq--2d196822
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-43b132db,team=alpha
ot-baggage-routing-key rk-43b132db
traceparent 00-e0e4d2cde363598176f924bb9d82f529-743abbbec2536148-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-http--f6e5e528

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-dea671d4e84db4fde9c1106a134daca7-3c0c5259c08ac8d0-01
tracestate es=s:1
test id
elastic-php--kafka-http--f6e5e528
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-9ddd5105,team=alpha
ot-baggage-routing-key rk-9ddd5105
traceparent 00-541ce767d19c8cbc5d3cfc4e484a6e77-f48caee7398f98a3-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-grpc--4ffa7844

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
elastic-php--kafka-grpc--4ffa7844
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-8d8297d1,team=alpha
ot-baggage-routing-key rk-8d8297d1
traceparent 00-4f25879e9cc4c682690be19e6dbcde00-c8307fc6debe5155-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-kafka--f8869012

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--kafka-kafka--f8869012
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-ef0f2a24,team=alpha
ot-baggage-routing-key rk-ef0f2a24
traceparent 00-1b0fe519231e98068584969267a79852-b03afe197604a0af-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-rabbitmq--f67cdb56

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

No headers observed.

test id
elastic-php--kafka-rabbitmq--f67cdb56
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-969cd4d3,team=alpha
ot-baggage-routing-key rk-969cd4d3
traceparent 00-50d6d2f238663d92228b3538b027258d-ad3cb0300c54b0f5-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-http--f866b5cb

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 50
content-type application/json
traceparent 00-18b5070ee46be292f0206fda1e666537-263065b459370dbc-01
tracestate es=s:1
test id
elastic-php--rabbitmq-http--f866b5cb
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-8a742da0,team=alpha
ot-baggage-routing-key rk-8a742da0
traceparent 00-7b2ec8c1b5308756d0139b09f6cc1163-840fcde9edadbdd5-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-grpc--b64b3ed2

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
elastic-php--rabbitmq-grpc--b64b3ed2
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-7ce49aa3,team=alpha
ot-baggage-routing-key rk-7ce49aa3
traceparent 00-93f60da1b84dd301154564ba59945e22-37593f28e95e81de-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-kafka--30bb1237

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--rabbitmq-kafka--30bb1237
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-564c9afd,team=alpha
ot-baggage-routing-key rk-564c9afd
traceparent 00-369d4f5d7b33b893b6738f934c3bb342-57cbd46dee8dc07d-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-rabbitmq--6b80dbbe

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

No headers observed.

test id
elastic-php--rabbitmq-rabbitmq--6b80dbbe
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent

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