newrelic-python

Python zero-code newrelic (pypi)14.3.0

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.

216 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.

104 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.

63 cells affected

newrelic-traceparent-flags-own-sampling

Versions in this run

Tracer
newrelic 14.3.0 this version 14.3.0 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
25 Nov 2026, 00:15 UTC
Harness
b9a3348 · run run-2026-11-25.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-25.1.json → variants[id = "newrelic-python"]

Libraries

confluent-kafka2.16.2
flask3.1.3
grpcio1.85.3
rabbitmqpika 1.5.0
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-be0db358,team=alpha
ot-baggage-routing-key rk-be0db358
traceparent 00-4a98aca7f60c304581dad0bc4a67041a-fa6f906c9925b85c-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--0f5c21c1

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-4a98aca7f60c304581dad0bc4a67041a-2c35c9eecd41e7d3-00
tracestate 8478732@nr=0-0-8478732-572441051--7ba0a84dad9fac4c-0-0.427652-1795565742591,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--0f5c21c1
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-71b0797e,team=alpha
ot-baggage-routing-key rk-71b0797e
traceparent 00-eae071524379e31952e3d03fe07bb316-d9a4e974e2b8893e-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--8d342efb

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-eae071524379e31952e3d03fe07bb316-d507fdf46e6accb2-00
tracestate 8478732@nr=0-0-8478732-572441051--a2f8c054ff3efc31-0-0.480641-1795565742598,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--8d342efb
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-2ad68b56,team=alpha
ot-baggage-routing-key rk-2ad68b56
traceparent 00-4342407d7421c8b87982228a2419c765-31616a1a9148f1d3-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--0ceac711

Observed at the sink on the outbound Kafka record headers

traceparent 00-4342407d7421c8b87982228a2419c765-7ee3730fba45262b-00
tracestate 8478732@nr=0-0-8478732-572441051--5efb59c37a3cc029-0-0.794904-1795565742602,cptest=v1
test id
newrelic-python--http-kafka--0ceac711
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-430a3cb8,team=alpha
ot-baggage-routing-key rk-430a3cb8
traceparent 00-68b23cf7d5eba19a3137ed6961c38d7b-50676fce7cc3a4f6-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--d4755e38

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

traceparent 00-68b23cf7d5eba19a3137ed6961c38d7b-69abaf19d4d2dcb7-00
tracestate 8478732@nr=0-0-8478732-572441051--e594387b374af940-0-0.041084-1795565742615,cptest=v1
test id
newrelic-python--http-rabbitmq--d4755e38
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-f8d3731d,team=alpha
ot-baggage-routing-key rk-f8d3731d
traceparent 00-167f2a06a23cd6027b22eac6a1d9bba9-48e7cc3104b09660-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--0e33e28c

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-167f2a06a23cd6027b22eac6a1d9bba9-a7cf7df3d2479b4a-00
tracestate 8478732@nr=0-0-8478732-572441051--e609dd4ec1bc41b6-0-0.123387-1795565742738,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--0e33e28c
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-6d65740b,team=alpha
ot-baggage-routing-key rk-6d65740b
traceparent 00-62c543229fd61fbc09b75e4e7ac71a69-651add0763e35750-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--7430a8be

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-62c543229fd61fbc09b75e4e7ac71a69-1103a5ac37f211ae-00
tracestate 8478732@nr=0-0-8478732-572441051--bc579cc26b9dff2c-0-0.986102-1795565742748,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--7430a8be
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-1b65d0b7,team=alpha
ot-baggage-routing-key rk-1b65d0b7
traceparent 00-903e1e7ec656ca6152b7d964c34bc6fe-400efc54370a3117-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--0b245135

Observed at the sink on the outbound Kafka record headers

traceparent 00-903e1e7ec656ca6152b7d964c34bc6fe-92893b204520a636-00
tracestate 8478732@nr=0-0-8478732-572441051--f96b1595f1235b3c-0-0.915261-1795565742868,cptest=v1
test id
newrelic-python--grpc-kafka--0b245135
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-2b9e4fba,team=alpha
ot-baggage-routing-key rk-2b9e4fba
traceparent 00-51ec86f1ae1393eed7440d29f60162db-8659351136c345a8-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--bfb4cdc8

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

traceparent 00-51ec86f1ae1393eed7440d29f60162db-3f1bf9a59b3d6ef3-00
tracestate 8478732@nr=0-0-8478732-572441051--59db9e6c9c24a54c-0-0.535581-1795565742892,cptest=v1
test id
newrelic-python--grpc-rabbitmq--bfb4cdc8
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-5a5eec27,team=alpha
ot-baggage-routing-key rk-5a5eec27
traceparent 00-56391acb5960e2533bf8417aa5dffd62-1a67e5f224818ab9-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--8d2f19ad

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-56391acb5960e2533bf8417aa5dffd62-a946218416f08611-00
tracestate 8478732@nr=0-0-8478732-572441051--e2a625610fcfcfc7-0-0.639586-1795565743419,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--8d2f19ad
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-0789825d,team=alpha
ot-baggage-routing-key rk-0789825d
traceparent 00-4e35efcfc884499dd2f65f3dc781fb00-a247ca134bc53fac-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--40afa878

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-4e35efcfc884499dd2f65f3dc781fb00-9c24bf8ea31fdbe9-00
tracestate 8478732@nr=0-0-8478732-572441051--7897ddc007c1a755-0-0.449158-1795565743923,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--40afa878
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-b0206299,team=alpha
ot-baggage-routing-key rk-b0206299
traceparent 00-5a2c7eca40859aa12ffbffe52ad7717d-8817a802d3715e5d-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--e5275cf1

Observed at the sink on the outbound Kafka record headers

traceparent 00-5a2c7eca40859aa12ffbffe52ad7717d-27dc824ef97b64c5-00
tracestate 8478732@nr=0-0-8478732-572441051--7667b60642810153-0-0.814601-1795565743929,cptest=v1
test id
newrelic-python--kafka-kafka--e5275cf1
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-d852aec7,team=alpha
ot-baggage-routing-key rk-d852aec7
traceparent 00-aced7cd952c7f65b8438034b1228dbb1-3e30922d3ae12fb0-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--37341d8c

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

traceparent 00-aced7cd952c7f65b8438034b1228dbb1-ea41f716b74e2b6d-00
tracestate 8478732@nr=0-0-8478732-572441051--bfd94ecfb6e35623-0-0.857091-1795565744437,cptest=v1
test id
newrelic-python--kafka-rabbitmq--37341d8c
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-bc96be97,team=alpha
ot-baggage-routing-key rk-bc96be97
traceparent 00-b6253965c3640f18d0222598fbef4620-c63f453b449e648a-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--20b802c1

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-b6253965c3640f18d0222598fbef4620-1f121fdb9e9e9d63-00
tracestate 8478732@nr=0-0-8478732-572441051--a752a9557d0fde6b-0-0.549849-1795565744936,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--20b802c1
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-f4be2344,team=alpha
ot-baggage-routing-key rk-f4be2344
traceparent 00-e212ec3b986315eb4fdf5011ca6b4274-59d2754228e82660-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--10bb95ae

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-e212ec3b986315eb4fdf5011ca6b4274-704209394db61cbe-00
tracestate 8478732@nr=0-0-8478732-572441051--20b934c166824751-0-0.305584-1795565745437,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--10bb95ae
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-04aab9fe,team=alpha
ot-baggage-routing-key rk-04aab9fe
traceparent 00-951df4c1590d7b20a701d7d286bec1b7-b0fa43ee18ded84e-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--a20b14f5

Observed at the sink on the outbound Kafka record headers

traceparent 00-951df4c1590d7b20a701d7d286bec1b7-e36f33c32dcda100-00
tracestate 8478732@nr=0-0-8478732-572441051--87af36fa24299424-0-0.790562-1795565746049,cptest=v1
test id
newrelic-python--rabbitmq-kafka--a20b14f5
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-bd69a4f3,team=alpha
ot-baggage-routing-key rk-bd69a4f3
traceparent 00-eddd1d8dd710fa5cc731cc4443439b1e-5795e6426d0e1c7f-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--09ea1c0b

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

traceparent 00-eddd1d8dd710fa5cc731cc4443439b1e-3d040f241abd304d-00
tracestate 8478732@nr=0-0-8478732-572441051--030b000e94e8d4a9-0-0.469031-1795565746483,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--09ea1c0b
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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