datadog-php

PHP zero-code dd-trace-php1.25.0

attach datadog-setup.php installer (ddtrace extension)

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

dd-trace .NET, Ruby, Rust and PHP do not emit the legacy ot-baggage-* headers

by-design ot-baggage-* is undocumented legacy behaviour of dd-trace java/js/go; .NET never had it, Ruby removed it with OpenTracing, Rust and PHP do not emit it.

dd-trace-java, dd-trace-js and dd-trace-go carry ot-baggage-* across all 16 boundaries; these four tracers ignore the seeded header (not extracted, not re-emitted). Datadog's propagation reference lists the styles datadog, tracecontext, b3single, b3multi, baggage, none — ot-baggage appears nowhere, so the headers the first group emits are legacy behaviour of their datadog style rather than a configurable format.

Per tracer: dd-trace-rb removed OpenTracing (and with it ot-baggage-*) in 2.0 (PR #3443; maintainer confirmation in #4055 — W3C baggage landed later in 2.13.0 via #4493/#4505). dd-trace-dotnet never had it — a code search for ot-baggage returns zero results. datadog-opentelemetry (Rust) has no ot-baggage-* style. dd-trace-php can emit ot-baggage-* in some configurations (#3614, nginx rejecting ot-baggage-true-client-ip), so "never emits" would overstate — but at 1.25.0 with the harness configuration it measured absent on every delivered boundary.

The values still flow via W3C baggage wherever that header works for the same tracer.

92 cells affected

datadog-ot-baggage-not-implemented

dd-trace-php closes the rdkafka consume span inside consume(), before user code runs

open The Kafka consume hook attaches the extracted headers to a span it closes before returning the message, so outbound calls run outside the extracted context.

Kafka injection works on dd-trace-php 1.25.0 (*->kafka passes, baggage included), but the rdkafka consume side does not continue context: kafka->* starts a new trace and baggage is gone. The mechanism is visible in KafkaIntegration.php: the consume hook opens a new trace root, attaches the extracted headers to that span, and calls close_span() inside the consume() call itself — before application code ever sees the message.

DD_TRACE_KAFKA_DISTRIBUTED_TRACING defaults to true (configuration.h), so the gap is the scoping, not the flag. The historical rdkafka request (#639) was never closed after injection shipped.

Workaround: read the record headers after consume() returns and continue the trace from them manually before outbound calls. Upstream fix: keep the consume span (and the extracted context) active until the application has processed the message. No upstream issue reports that consumed Kafka context does not reach post-consume user code — filing candidate.

12 cells affected

datadog-php-rdkafka-consume-span-closed-early

Versions in this run

Tracer
DataDog/dd-trace-php 1.25.0 reported as ddtrace 1.25.0 this version 1.25.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
datadog-setup.php installer (ddtrace extension)
Relay source
relays/php
Ran at
7 Sept 2026, 10:53 UTC
Harness
commit not recorded · run run-2026-09-07
Raw JSON
run-2026-09-07.json → variants[id = "datadog-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

DD_INSTRUMENTATION_TELEMETRY_ENABLEDfalse
DD_REMOTE_CONFIG_ENABLEDfalse
DD_SERVICErelay-datadog-php
DD_TRACE_PROPAGATION_STYLEdatadog,tracecontext,baggage
DD_TRACE_STARTUP_LOGSfalse

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-3c4d2073,team=alpha
ot-baggage-routing-key rk-3c4d2073
traceparent 00-a99500b9ada19a0c37b041279ed243ce-f05744ea40c54421-01
tracestate cptest=v1
x-cp-canary datadog-php--http-http--1616223a

Observed at the sink on the outbound HTTP request headers

accept */*
baggage routing-key=rk-3c4d2073,team=alpha
content-length 46
content-type application/json
traceparent 00-a99500b9ada19a0c37b041279ed243ce-9314163e728c144c-01
tracestate dd=p:9314163e728c144c;t.dm:-0,cptest=v1
x-datadog-parent-id 10598120280575185996
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=a99500b9ada19a0c,_dd.p.dm=-0
x-datadog-trace-id 4012778906411221966
test id
datadog-php--http-http--1616223a
raw statuses
baggage=propagatedtracestate=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-8668ea62,team=alpha
ot-baggage-routing-key rk-8668ea62
traceparent 00-8cdaf9e66442b48730cd5d49df570961-bcb240487c8e9819-01
tracestate cptest=v1
x-cp-canary datadog-php--http-grpc--ac9368a6

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
datadog-php--http-grpc--ac9368a6
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound HTTP request headers

baggage routing-key=rk-a15955ed,team=alpha
ot-baggage-routing-key rk-a15955ed
traceparent 00-9500ee8bd4643f440ecee917f7cc4798-d0a0dad02a6926f1-01
tracestate cptest=v1
x-cp-canary datadog-php--http-kafka--4e73a6a9

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-a15955ed,team=alpha
traceparent 00-9500ee8bd4643f440ecee917f7cc4798-f47571a408fe7de6-01
tracestate dd=p:f47571a408fe7de6;t.dm:-0,cptest=v1
x-datadog-parent-id 17615110466869034470
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=9500ee8bd4643f44,_dd.p.dm=-0
x-datadog-trace-id 1067046450884265880
test id
datadog-php--http-kafka--4e73a6a9
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_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-16d871fa,team=alpha
ot-baggage-routing-key rk-16d871fa
traceparent 00-8e2578f6cca12925254a86eea676aa7c-a4bcbf8536e19845-01
tracestate cptest=v1
x-cp-canary datadog-php--http-rabbitmq--95973c35

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

baggage routing-key=rk-16d871fa,team=alpha
traceparent 00-8e2578f6cca12925254a86eea676aa7c-b1efa7a0beb8a3ad-01
tracestate dd=p:b1efa7a0beb8a3ad;t.dm:-0,cptest=v1
x-datadog-parent-id 12821650972983468973
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=8e2578f6cca12925,_dd.p.dm=-0
x-datadog-trace-id 2687108487233055356
test id
datadog-php--http-rabbitmq--95973c35
raw statuses
baggage=propagatedtracestate=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 192.168.117.5:8081: connect: connection refused"

Seeded on the inbound gRPC metadata

baggage routing-key=rk-284fbbd6,team=alpha
ot-baggage-routing-key rk-284fbbd6
traceparent 00-50bc60560a475b6bf0b3a1e807e76981-584d90cfe437bcfb-01
tracestate cptest=v1
x-cp-canary datadog-php--grpc-http--a4d7e944

Observed at the sink on the outbound HTTP request headers

Nothing reached the sink.

test id
datadog-php--grpc-http--a4d7e944
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-823d1ebb,team=alpha
ot-baggage-routing-key rk-823d1ebb
traceparent 00-07a2c3517cfbb9f8dd3d0da543833b35-9775b54c60ba790a-01
tracestate cptest=v1
x-cp-canary datadog-php--grpc-grpc--cbbf6477

Observed at the sink on the outbound gRPC metadata

Nothing reached the sink.

test id
datadog-php--grpc-grpc--cbbf6477
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-84d6593d,team=alpha
ot-baggage-routing-key rk-84d6593d
traceparent 00-ddc3715a1729bd0c31355cdcc097656a-c0390a543ade505a-01
tracestate cptest=v1
x-cp-canary datadog-php--grpc-kafka--d3811d8d

Observed at the sink on the outbound Kafka record headers

Nothing reached the sink.

test id
datadog-php--grpc-kafka--d3811d8d
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-8df46a54,team=alpha
ot-baggage-routing-key rk-8df46a54
traceparent 00-88e2ef9c9b0eedf7d7fb07f4ffbc54b3-5c841991f7f0beeb-01
tracestate cptest=v1
x-cp-canary datadog-php--grpc-rabbitmq--17141b0a

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

Nothing reached the sink.

test id
datadog-php--grpc-rabbitmq--17141b0a
raw statuses
baggage=—tracestate=—traceparent=—ot_baggage=—
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_new_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-0a34f33e,team=alpha
ot-baggage-routing-key rk-0a34f33e
traceparent 00-f84b4a09252e624add4dfcd76bdf7f4b-91e8bce3ea146a7f-01
tracestate cptest=v1
x-cp-canary datadog-php--kafka-http--f6120a92

Observed at the sink on the outbound HTTP request headers

accept */*
content-length 47
content-type application/json
traceparent 00-6a9e97b40000000047277db13db5f6be-47277db13db5f6be-03
tracestate dd=p:47277db13db5f6be;t.dm:-0
x-datadog-parent-id 5127204900982617790
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=6a9e97b400000000,_dd.p.dm=-0
x-datadog-trace-id 5127204900982617790
test id
datadog-php--kafka-http--f6120a92
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-1e95d29d,team=alpha
ot-baggage-routing-key rk-1e95d29d
traceparent 00-0addbd7210ebd6778b5ef4e1888c2c58-2ebe8ff67f15cbf6-01
tracestate cptest=v1
x-cp-canary datadog-php--kafka-grpc--5e82e5f7

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
datadog-php--kafka-grpc--5e82e5f7
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_new_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-ecc690d6,team=alpha
ot-baggage-routing-key rk-ecc690d6
traceparent 00-677b59df98a07a18ec2f79c6a38027b9-00ad5fc8c5205c88-01
tracestate cptest=v1
x-cp-canary datadog-php--kafka-kafka--ff1d0425

Observed at the sink on the outbound Kafka record headers

traceparent 00-6a9e97b5000000004979259c73362dd5-4979259c73362dd5-03
tracestate dd=p:4979259c73362dd5;t.dm:-0
x-datadog-parent-id 5294304190828785109
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=6a9e97b500000000,_dd.p.dm=-0
x-datadog-trace-id 5294304190828785109
test id
datadog-php--kafka-kafka--ff1d0425
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_new_trace

Seeded on the inbound Kafka record headers

baggage routing-key=rk-ea508c86,team=alpha
ot-baggage-routing-key rk-ea508c86
traceparent 00-139b10f4bf919dd362f394ca15156966-f0cd06d04a216921-01
tracestate cptest=v1
x-cp-canary datadog-php--kafka-rabbitmq--6a7da269

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

traceparent 00-6a9e97b600000000cacc645175552846-cacc645175552846-03
tracestate dd=p:cacc645175552846;t.dm:-0
x-datadog-parent-id 14613165191934060614
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=6a9e97b600000000,_dd.p.dm=-0
x-datadog-trace-id 14613165191934060614
test id
datadog-php--kafka-rabbitmq--6a7da269
raw statuses
baggage=absenttracestate=present_entry_losttraceparent=new_traceot_baggage=absent
RabbitMQ HTTP baggage tracestate traceparent ot-baggage delivered via http native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-856aa597,team=alpha
ot-baggage-routing-key rk-856aa597
traceparent 00-61400ca650a90ccf9f6e2d07335750c2-52d3b2cd25e70bf2-01
tracestate cptest=v1
x-cp-canary datadog-php--rabbitmq-http--8e2fcaac

Observed at the sink on the outbound HTTP request headers

accept */*
baggage routing-key=rk-856aa597,team=alpha
content-length 50
content-type application/json
traceparent 00-61400ca650a90ccf9f6e2d07335750c2-444d283863fade82-01
tracestate dd=p:444d283863fade82;t.dm:-0,cptest=v1
x-datadog-parent-id 4921634190446485122
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=61400ca650a90ccf,_dd.p.dm=-0
x-datadog-trace-id 11488169208418095298
test id
datadog-php--rabbitmq-http--8e2fcaac
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_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-f49aab82,team=alpha
ot-baggage-routing-key rk-f49aab82
traceparent 00-a5523db44198127aecc50366bd2303bc-6bbd9bc002f4b238-01
tracestate cptest=v1
x-cp-canary datadog-php--rabbitmq-grpc--82e7acc9

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
datadog-php--rabbitmq-grpc--82e7acc9
raw statuses
baggage=absenttracestate=absenttraceparent=absentot_baggage=absent
RabbitMQ Kafka baggage tracestate traceparent ot-baggage delivered via kafka native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-c56e459a,team=alpha
ot-baggage-routing-key rk-c56e459a
traceparent 00-87275f7c1c1f832d9751308ff3f4e3f2-59e94361404eb7ac-01
tracestate cptest=v1
x-cp-canary datadog-php--rabbitmq-kafka--1df4cf1f

Observed at the sink on the outbound Kafka record headers

baggage routing-key=rk-c56e459a,team=alpha
traceparent 00-87275f7c1c1f832d9751308ff3f4e3f2-18975ba7e32f692b-01
tracestate dd=p:18975ba7e32f692b;t.dm:-0,cptest=v1
x-datadog-parent-id 1771985755022780715
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=87275f7c1c1f832d,_dd.p.dm=-0
x-datadog-trace-id 10903549567672050674
test id
datadog-php--rabbitmq-kafka--1df4cf1f
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent
RabbitMQ RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq native: present_same_trace

Seeded on the inbound AMQP 0-9-1 message headers

baggage routing-key=rk-14e66104,team=alpha
ot-baggage-routing-key rk-14e66104
traceparent 00-2e4275adc78e97c483f8856ad669e37d-e0443df095c93d24-01
tracestate cptest=v1
x-cp-canary datadog-php--rabbitmq-rabbitmq--0e9d1767

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

baggage routing-key=rk-14e66104,team=alpha
traceparent 00-2e4275adc78e97c483f8856ad669e37d-0853fc8bbeb6d93e-01
tracestate dd=p:0853fc8bbeb6d93e;t.dm:-0,cptest=v1
x-datadog-parent-id 600100852500715838
x-datadog-sampling-priority 1
x-datadog-tags _dd.p.tid=2e4275adc78e97c4,_dd.p.dm=-0
x-datadog-trace-id 9509497307103093629
test id
datadog-php--rabbitmq-rabbitmq--0e9d1767
raw statuses
baggage=propagatedtracestate=preservedtraceparent=same_traceot_baggage=absent

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