elastic-php

PHP zero-code elastic-apm-php1.17.1

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

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.

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). We found no upstream issue requesting messaging support in this agent.

20 cells affected

elastic-php-messaging-not-supported

Versions in this run

Tracer
elastic/apm-agent-php 1.17.1 reported as elastic_apm 1.17.1 this version 1.17.1 on github-releases 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
apm-agent-php .deb (elastic_apm extension)
Relay source
relays/php
Ran at
30 Nov 2026, 18:58 UTC
Harness
ae4b9c9 · run run-2026-11-30.1
Raw JSON
run-2026-11-30.1.json → variants[id = "elastic-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

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-bc811ed8,team=alpha
ot-baggage-routing-key rk-bc811ed8
traceparent 00-0cd073d0eb115e8c08144f751840a7ff-1519f26784748514-01
tracestate cptest=v1
x-cp-canary elastic-php--http-http--2d02bc89

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 46
content-type application/json
traceparent 00-0cd073d0eb115e8c08144f751840a7ff-6e9d7453da46ee2e-01
tracestate cptest=v1
test id
elastic-php--http-http--2d02bc89
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-1d7d189f,team=alpha
ot-baggage-routing-key rk-1d7d189f
traceparent 00-5d039b5110e299fdd9619ec8bb6ef86f-74e290437cccfa98-01
tracestate cptest=v1
x-cp-canary elastic-php--http-grpc--4c5daf3e

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
elastic-php--http-grpc--4c5daf3e
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-f2ce2565,team=alpha
ot-baggage-routing-key rk-f2ce2565
traceparent 00-31ccc862448b71e35adf36492da729a2-4eb2b1a61bd14610-01
tracestate cptest=v1
x-cp-canary elastic-php--http-kafka--e0764917

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--http-kafka--e0764917
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-93e6f020,team=alpha
ot-baggage-routing-key rk-93e6f020
traceparent 00-31f2ccca6dfff72685efab95bdfd3132-3eaf7d94cd5c5781-01
tracestate cptest=v1
x-cp-canary elastic-php--http-rabbitmq--4e076be4

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

No headers observed.

test id
elastic-php--http-rabbitmq--4e076be4
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-74727844,team=alpha
ot-baggage-routing-key rk-74727844
traceparent 00-d6c9101e44dec89f0f08b10a86cfe12b-d311eb32c0937338-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-http--9c8a28ec

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
elastic-php--grpc-http--9c8a28ec
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-b9345d5e,team=alpha
ot-baggage-routing-key rk-b9345d5e
traceparent 00-6201d5cf1dd8bb9c8669a44cb9688309-937840b47ac94c93-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-grpc--37e2dc62

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
elastic-php--grpc-grpc--37e2dc62
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-b6bcb978,team=alpha
ot-baggage-routing-key rk-b6bcb978
traceparent 00-0ce98586ce62a580d95cdffb95edbd87-114abf7f5bad4377-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-kafka--1ad0e283

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
elastic-php--grpc-kafka--1ad0e283
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-604b1a2d,team=alpha
ot-baggage-routing-key rk-604b1a2d
traceparent 00-ee811329dc5d843e0fcca6b28c1e271b-2fb17232b6c74e6a-01
tracestate cptest=v1
x-cp-canary elastic-php--grpc-rabbitmq--27039f6d

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

Nothing reached the sink.

test id
elastic-php--grpc-rabbitmq--27039f6d
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-5fc3f27f,team=alpha
ot-baggage-routing-key rk-5fc3f27f
traceparent 00-d6eb4eb879ec0c8710e2646d15fe6c59-ef4bad9914a710b4-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-http--d6fb489e

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-05cd5f263d58841366ae10e8a3f3290b-4cc5a81a45cb193b-01
tracestate es=s:1
test id
elastic-php--kafka-http--d6fb489e
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-732c37ba,team=alpha
ot-baggage-routing-key rk-732c37ba
traceparent 00-efba3ef055f187caa41e7b0f41d98bbb-5ad2e4279b0259f5-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-grpc--53981424

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
elastic-php--kafka-grpc--53981424
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-95774272,team=alpha
ot-baggage-routing-key rk-95774272
traceparent 00-eb456aefe4679ae659e26fa3bcc10040-18e9e56f69fe74f7-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-kafka--33c649e4

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--kafka-kafka--33c649e4
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-2bff19cc,team=alpha
ot-baggage-routing-key rk-2bff19cc
traceparent 00-5068b712180483f55a3a82f24e3f4777-d04cea8359cfd571-01
tracestate cptest=v1
x-cp-canary elastic-php--kafka-rabbitmq--30ca1a78

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

No headers observed.

test id
elastic-php--kafka-rabbitmq--30ca1a78
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-22b42b18,team=alpha
ot-baggage-routing-key rk-22b42b18
traceparent 00-1c0a38b13fc2ed2536eac702eb6e319c-b506b7b2ed8ba7d2-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-http--96e41ae4

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 50
content-type application/json
traceparent 00-95ff94f93317a23fd1fe619d7b332634-0b54b839630efb5b-01
tracestate es=s:1
test id
elastic-php--rabbitmq-http--96e41ae4
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-1d5afa39,team=alpha
ot-baggage-routing-key rk-1d5afa39
traceparent 00-02454648f7f3358a6fd031afa04dc633-317c2c27f37c3646-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-grpc--153c438f

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
elastic-php--rabbitmq-grpc--153c438f
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-c54711a1,team=alpha
ot-baggage-routing-key rk-c54711a1
traceparent 00-d2a6f8aa7f28b02edcc291520cd15426-22af9e4ad4654784-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-kafka--2f13e593

Observed at the sink on the outbound Kafka record headers

No headers observed.

test id
elastic-php--rabbitmq-kafka--2f13e593
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-2263ed43,team=alpha
ot-baggage-routing-key rk-2263ed43
traceparent 00-53ba9d2d4e1e9f5467d214a6a6d0f6ac-d7256482b1b876a6-01
tracestate cptest=v1
x-cp-canary elastic-php--rabbitmq-rabbitmq--ac1ee683

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

No headers observed.

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

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