newrelic-python

Python zero-code newrelic (pypi)13.0.1

attach newrelic-admin run-program python app.py

32/64 cells pass
  • Pass
  • Partial
  • New trace
  • Fail
  • Undelivered
  • Not run

Explanations

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.

16 cells affected

ot-baggage-not-implemented

New Relic agents carry no W3C baggage on any boundary

by-design Baggage is not part of New Relic's distributed-tracing model (traceparent, tracestate, newrelic); no agent forwards the header and no feature request exists.

New Relic's "How distributed tracing works" defines the complete header model as exactly three headers: traceparent, tracestate and the vendor newrelic header. The seeded W3C baggage member is neither extracted nor re-emitted by any of the seven agents on any of the 16 boundaries, even where trace context continues perfectly (Python is 16/16 for trace context).

An org-wide search for "baggage" across all New Relic agent repositories returns three unrelated hits; no feature request for W3C baggage exists in any of the seven agent repos. New Relic carries no baggage on any protocol; an application that routes on it has to carry the header itself.

16 cells affected

newrelic-no-baggage

New Relic agents continue the trace but set the traceparent sampled flag from their own sampling decision

by-design A New Relic agent takes the trace id from traceparent but decides sampling itself unless an upstream New Relic agent's tracestate entry says otherwise; the flags byte it writes mirrors that decision, not the seeded 01.

Every New Relic pass on traceparent continues the seeded trace id, but the flags byte on the outbound header is the agent's own. The harness seeds 01 (sampled); what comes out is 00 on hops where the agent did not sample the transaction and 01 where it did. The W3C specification allows this: the sampled flag is a hint, and each participant may decide for itself.

New Relic's model carries the decision in its @nr tracestate entry (the sampled and priority fields). When an inbound request has an @nr entry from a trusted account, the agent adopts that decision; the harness seeds no @nr entry, so each agent decides with its own adaptive sampler and writes the result into both the @nr entry and the traceparent flags. Which hops come out 00 therefore varies by agent and by run.

The harness scores traceparent on the trace id only; the flags byte is recorded with each hop but not graded, so these cells pass. A W3C-only service downstream of a New Relic agent sees 00 on every request the agent did not sample, and may treat the trace as unsampled.

16 cells affected

newrelic-traceparent-flags-own-sampling

Versions measured

Tracer
newrelic 13.0.1 13.0.1 on pypi github
Runtime
python 3.12.16
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
newrelic-admin run-program python app.py
Relay source
relays/python
Ran at
10 Nov 2026, 07:54 UTC
Harness
9b99070 · measured in backtest-newrelic-python-13.0.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.0.1.json → variants[id = "newrelic-python"]

Libraries

confluent-kafka2.15.0
flask3.1.3
grpcio1.83.1
rabbitmqpika 1.4.4
requests2.34.2

Configuration

NEW_RELIC_DISTRIBUTED_TRACING_ENABLEDtrue

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-d556886a,team=alpha
ot-baggage-routing-key rk-d556886a
traceparent 00-518dd3d9fc39d6e7c206772df7e0131a-ea8d79ec37aca1fc-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--a086bd20

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip, deflate
connection keep-alive
content-length 51
content-type application/json
traceparent 00-518dd3d9fc39d6e7c206772df7e0131a-da0436cc14b41d61-00
tracestate 8478732@nr=0-0-8478732-572441051-da0436cc14b41d61-e628fdd188694113-0-0.429143-1794297258890,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--a086bd20
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-fa306a8a,team=alpha
ot-baggage-routing-key rk-fa306a8a
traceparent 00-49860f60527404bb59311015ae283871-3ca9cabaafba4682-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--9aa102c7

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-49860f60527404bb59311015ae283871-c319d9db1e4f85f5-00
tracestate 8478732@nr=0-0-8478732-572441051-c319d9db1e4f85f5-ab456aff11047256-0-0.300253-1794297258895,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--9aa102c7
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound HTTP request headers

baggage routing-key=rk-9f4548a2,team=alpha
ot-baggage-routing-key rk-9f4548a2
traceparent 00-bb7cf571ba39ac2971457ffd44c0f31e-5c8195174ff1e045-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--a6ca91c6

Observed at the sink on the outbound Kafka record headers

traceparent 00-bb7cf571ba39ac2971457ffd44c0f31e-abead4f260300cf4-00
tracestate 8478732@nr=0-0-8478732-572441051-abead4f260300cf4-81f881bedac51dcb-0-0.341657-1794297258898,cptest=v1
test id
newrelic-python--http-kafka--a6ca91c6
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
HTTP RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound HTTP request headers

baggage routing-key=rk-56222b1f,team=alpha
ot-baggage-routing-key rk-56222b1f
traceparent 00-2d920bae0c5140087dd0db9f1f2487ec-f157a3a6fa10ea78-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--1c359110

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

traceparent 00-2d920bae0c5140087dd0db9f1f2487ec-ffcc91522a679adb-00
tracestate 8478732@nr=0-0-8478732-572441051-ffcc91522a679adb-5b106c618ef47f70-0-0.68523-1794297258909,cptest=v1
test id
newrelic-python--http-rabbitmq--1c359110
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound gRPC metadata

baggage routing-key=rk-fe272e3b,team=alpha
ot-baggage-routing-key rk-fe272e3b
traceparent 00-201d4ecb973115821b2e11b7af828131-0e0c47af4e7776e2-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--dfb05228

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip, deflate
connection keep-alive
content-length 51
content-type application/json
traceparent 00-201d4ecb973115821b2e11b7af828131-2f7bbc39f9f9609d-00
tracestate 8478732@nr=0-0-8478732-572441051-2f7bbc39f9f9609d-eec7a92510275a38-0-0.187825-1794297259047,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--dfb05228
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound gRPC metadata

baggage routing-key=rk-63184253,team=alpha
ot-baggage-routing-key rk-63184253
traceparent 00-dbec4cc5d0958334b948ce740945f3fa-31d7de94b95e56e4-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--4820760e

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-dbec4cc5d0958334b948ce740945f3fa-e375e3c1f3aee1f9-00
tracestate 8478732@nr=0-0-8478732-572441051-e375e3c1f3aee1f9-df8df5ba7677a073-0-0.945535-1794297259108,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--4820760e
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound gRPC metadata

baggage routing-key=rk-bcbbeb02,team=alpha
ot-baggage-routing-key rk-bcbbeb02
traceparent 00-d30689d41d0b4421970031fb5726c2fb-42bcb7b944729bbb-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--861ff6e2

Observed at the sink on the outbound Kafka record headers

traceparent 00-d30689d41d0b4421970031fb5726c2fb-7d508b44a1c2fbe6-00
tracestate 8478732@nr=0-0-8478732-572441051-7d508b44a1c2fbe6-3e27f8dc695b1331-0-0.420757-1794297259117,cptest=v1
test id
newrelic-python--grpc-kafka--861ff6e2
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
gRPC RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound gRPC metadata

baggage routing-key=rk-e146a297,team=alpha
ot-baggage-routing-key rk-e146a297
traceparent 00-022b1bae602e37c59944295662c5eaec-f04002286d0037bf-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--04d3d9e3

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

traceparent 00-022b1bae602e37c59944295662c5eaec-ca27e698505e7567-00
tracestate 8478732@nr=0-0-8478732-572441051-ca27e698505e7567-628b459a59094836-0-0.439796-1794297259642,cptest=v1
test id
newrelic-python--grpc-rabbitmq--04d3d9e3
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka HTTP baggage tracestate traceparent ot-baggage delivered via http

Seeded on the inbound Kafka record headers

baggage routing-key=rk-595ae67b,team=alpha
ot-baggage-routing-key rk-595ae67b
traceparent 00-ae2c0022970c47d252bb2841e9880545-113f1734fed1b4a7-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--bffb6d42

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip, deflate
connection keep-alive
content-length 52
content-type application/json
traceparent 00-ae2c0022970c47d252bb2841e9880545-ea7a00c52147ccc7-00
tracestate 8478732@nr=0-0-8478732-572441051-ea7a00c52147ccc7-2e7c440e334ff4c7-0-0.514056-1794297260170,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--bffb6d42
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka gRPC baggage tracestate traceparent ot-baggage delivered via grpc

Seeded on the inbound Kafka record headers

baggage routing-key=rk-ad88fec0,team=alpha
ot-baggage-routing-key rk-ad88fec0
traceparent 00-eb58a1430408ed580c2a0177364d30c6-b24c4f3b945cfe9e-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--8bed990b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-eb58a1430408ed580c2a0177364d30c6-be0a3af1a2255546-00
tracestate 8478732@nr=0-0-8478732-572441051-be0a3af1a2255546-03761443cdc58bcb-0-0.722952-1794297260672,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--8bed990b
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka Kafka baggage tracestate traceparent ot-baggage delivered via kafka

Seeded on the inbound Kafka record headers

baggage routing-key=rk-f7c5d063,team=alpha
ot-baggage-routing-key rk-f7c5d063
traceparent 00-9831195eed5d4081c7333433c497cb89-9dddd4550fd0d1a9-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--df9cb85a

Observed at the sink on the outbound Kafka record headers

traceparent 00-9831195eed5d4081c7333433c497cb89-ee4c3afc998b8c04-00
tracestate 8478732@nr=0-0-8478732-572441051-ee4c3afc998b8c04-1ab7c9135f04d09d-0-0.9328-1794297260677,cptest=v1
test id
newrelic-python--kafka-kafka--df9cb85a
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent
Kafka RabbitMQ baggage tracestate traceparent ot-baggage delivered via rabbitmq

Seeded on the inbound Kafka record headers

baggage routing-key=rk-323af76d,team=alpha
ot-baggage-routing-key rk-323af76d
traceparent 00-9e8d78e7b8310dd1ef845c8c44152b1d-81759d59911b86d8-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--03684246

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

traceparent 00-9e8d78e7b8310dd1ef845c8c44152b1d-eee1763832261e2b-00
tracestate 8478732@nr=0-0-8478732-572441051-eee1763832261e2b-f3a92fade8f64d23-0-0.8345-1794297261209,cptest=v1
test id
newrelic-python--kafka-rabbitmq--03684246
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-6e96a686,team=alpha
ot-baggage-routing-key rk-6e96a686
traceparent 00-9574cdfbf9ace29dd7bf989cd75763df-bb25daab6bbe12e8-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--4a7afe6a

Observed at the sink on the outbound HTTP request headers

accept */*
accept-encoding gzip, deflate
connection keep-alive
content-length 55
content-type application/json
traceparent 00-9574cdfbf9ace29dd7bf989cd75763df-b27f82e94f41aa17-00
tracestate 8478732@nr=0-0-8478732-572441051-b27f82e94f41aa17-006c8bf502c55bc7-0-0.166126-1794297261684,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--4a7afe6a
raw statuses
baggage=absenttracestate=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-13080e0b,team=alpha
ot-baggage-routing-key rk-13080e0b
traceparent 00-31929df1180134bd68d13c23c44e1fa9-1705e8041a8a9eef-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--f39b68b2

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-31929df1180134bd68d13c23c44e1fa9-6565c35f622cf73a-00
tracestate 8478732@nr=0-0-8478732-572441051-6565c35f622cf73a-35c03301a02a7ca0-0-0.166115-1794297262185,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--f39b68b2
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-bb9dfeaa,team=alpha
ot-baggage-routing-key rk-bb9dfeaa
traceparent 00-3caa66e57cfe29525a5dd653a1b9e059-f21b4fd7864e3490-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--6deb128a

Observed at the sink on the outbound Kafka record headers

traceparent 00-3caa66e57cfe29525a5dd653a1b9e059-c5054af57ec6bbcf-00
tracestate 8478732@nr=0-0-8478732-572441051-c5054af57ec6bbcf-b1e3aa45fd7c0221-0-0.616327-1794297262687,cptest=v1
test id
newrelic-python--rabbitmq-kafka--6deb128a
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_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-32b617c2,team=alpha
ot-baggage-routing-key rk-32b617c2
traceparent 00-0ccec760a832242ad9078c95a678b907-736a3cd2eb21359c-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--7d77b9fa

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

traceparent 00-0ccec760a832242ad9078c95a678b907-d7733b67ccbac6f8-00
tracestate 8478732@nr=0-0-8478732-572441051-d7733b67ccbac6f8-8305cf45748174dc-0-0.142927-1794297263193,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--7d77b9fa
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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