newrelic-python

Python zero-code newrelic (pypi)13.6.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.

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.6.0 13.6.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
9 Nov 2026, 19:52 UTC
Harness
9b99070 · measured in backtest-newrelic-python-13.6.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.6.0.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-30ca6e85,team=alpha
ot-baggage-routing-key rk-30ca6e85
traceparent 00-eccbf78709918124b0f39690c365446f-259b4af733e9bc6a-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--38633047

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-eccbf78709918124b0f39690c365446f-82ae188fe6665b53-00
tracestate 8478732@nr=0-0-8478732-572441051--978308c73204518f-0-0.012101-1794253943246,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--38633047
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-5d4bbe03,team=alpha
ot-baggage-routing-key rk-5d4bbe03
traceparent 00-de63a56d5db9af55be5fc52390963155-d84080fc04f71d9a-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--fa4a70e8

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-de63a56d5db9af55be5fc52390963155-7a4152359f67a24a-00
tracestate 8478732@nr=0-0-8478732-572441051--fc67e166be94e92a-0-0.900751-1794253943252,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--fa4a70e8
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-f5c081f6,team=alpha
ot-baggage-routing-key rk-f5c081f6
traceparent 00-ca58b4ab9247196c84439799ba981aa9-00aa549c7d3a2055-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--75077878

Observed at the sink on the outbound Kafka record headers

traceparent 00-ca58b4ab9247196c84439799ba981aa9-e50513266d221246-00
tracestate 8478732@nr=0-0-8478732-572441051--96441b5d5f1c535b-0-0.611506-1794253943256,cptest=v1
test id
newrelic-python--http-kafka--75077878
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-73725035,team=alpha
ot-baggage-routing-key rk-73725035
traceparent 00-0a44f3b5f2456eaaa6b9709c6b95f1f5-7669f422897db2bf-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--81159ec4

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

traceparent 00-0a44f3b5f2456eaaa6b9709c6b95f1f5-dce47786e5f3272f-00
tracestate 8478732@nr=0-0-8478732-572441051--2eb61f7a6365dd8b-0-0.285272-1794253943767,cptest=v1
test id
newrelic-python--http-rabbitmq--81159ec4
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-b2510b74,team=alpha
ot-baggage-routing-key rk-b2510b74
traceparent 00-b4a7f9eead56f62985a59e3413419615-d4e85e7dc8e4c432-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--1853d491

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-b4a7f9eead56f62985a59e3413419615-5984f926009bb0ae-00
tracestate 8478732@nr=0-0-8478732-572441051--cff6daadb11497cc-0-0.499447-1794253943785,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--1853d491
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-83134df7,team=alpha
ot-baggage-routing-key rk-83134df7
traceparent 00-f5c70eac36633f036587dbc7486ffb17-5d393c3a122a9ce2-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--93cda0c1

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-f5c70eac36633f036587dbc7486ffb17-9e6b1095ab9933e1-00
tracestate 8478732@nr=0-0-8478732-572441051--ff1a4bf1e2c4cd8f-0-0.010264-1794253943797,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--93cda0c1
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-4ca11eb9,team=alpha
ot-baggage-routing-key rk-4ca11eb9
traceparent 00-71182a868c5208a000b6ceaccd2bd5bd-6fa3e567cb7a85d9-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--fa8a896d

Observed at the sink on the outbound Kafka record headers

traceparent 00-71182a868c5208a000b6ceaccd2bd5bd-fc693ae438aec7fa-00
tracestate 8478732@nr=0-0-8478732-572441051--a115f6fe6fda68ee-0-0.386538-1794253943865,cptest=v1
test id
newrelic-python--grpc-kafka--fa8a896d
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-7368b49e,team=alpha
ot-baggage-routing-key rk-7368b49e
traceparent 00-3028693966c5a5de9f01342b4de54e02-b860492b5043eb7d-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--706e9413

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

traceparent 00-3028693966c5a5de9f01342b4de54e02-61df3222eb5e4c35-00
tracestate 8478732@nr=0-0-8478732-572441051--e2e304fb44ee7ab4-0-0.91781-1794253944388,cptest=v1
test id
newrelic-python--grpc-rabbitmq--706e9413
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-a1512f43,team=alpha
ot-baggage-routing-key rk-a1512f43
traceparent 00-00246bdd7167ad200ce2d29501819abb-c46a65a8b49332da-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--5b0fca35

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-00246bdd7167ad200ce2d29501819abb-2341c01e83b0cf58-00
tracestate 8478732@nr=0-0-8478732-572441051--7a638f8db36c8473-0-0.614762-1794253944914,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--5b0fca35
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-f9914b54,team=alpha
ot-baggage-routing-key rk-f9914b54
traceparent 00-79f8eb55e014b9393367872020e65652-a4dc66ad4075a688-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--f0c2e48c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-79f8eb55e014b9393367872020e65652-f375d8d4e9b7e51b-00
tracestate 8478732@nr=0-0-8478732-572441051--78293fc335eb509a-0-0.00679-1794253945419,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--f0c2e48c
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-3e437b35,team=alpha
ot-baggage-routing-key rk-3e437b35
traceparent 00-7e13380fa9b791a761eaeef981e3b57f-9c4d650b813c9996-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--6324099d

Observed at the sink on the outbound Kafka record headers

traceparent 00-7e13380fa9b791a761eaeef981e3b57f-4b29586cc69139a2-00
tracestate 8478732@nr=0-0-8478732-572441051--c596485041d9817d-0-0.633751-1794253945926,cptest=v1
test id
newrelic-python--kafka-kafka--6324099d
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-5a9c1332,team=alpha
ot-baggage-routing-key rk-5a9c1332
traceparent 00-1bfb7fc7b83e9b9beb1834e8f3e5a1c4-819a347e5662c09b-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--faee6fa2

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

traceparent 00-1bfb7fc7b83e9b9beb1834e8f3e5a1c4-793e3b8c347179bc-00
tracestate 8478732@nr=0-0-8478732-572441051--3b48273524397d74-0-0.786176-1794253946436,cptest=v1
test id
newrelic-python--kafka-rabbitmq--faee6fa2
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-21eeaa0c,team=alpha
ot-baggage-routing-key rk-21eeaa0c
traceparent 00-b09d717c6a18eb4367b20ad6360ce2e6-a99db9e7b7b8ed72-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--707223e3

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-b09d717c6a18eb4367b20ad6360ce2e6-48fe72a722174b14-00
tracestate 8478732@nr=0-0-8478732-572441051--28f64e7899ea8048-0-0.253449-1794253946932,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--707223e3
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-83ecc057,team=alpha
ot-baggage-routing-key rk-83ecc057
traceparent 00-7973fcd3fd9e76614eca95841e4a5b3f-103316a031689dd4-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--ec8eb4bf

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-7973fcd3fd9e76614eca95841e4a5b3f-9d41cdcdd5314e66-00
tracestate 8478732@nr=0-0-8478732-572441051--1d95cad6d1c5af7b-0-0.976924-1794253947434,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--ec8eb4bf
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-8dbbe32a,team=alpha
ot-baggage-routing-key rk-8dbbe32a
traceparent 00-c1db3b62976191a71019dedf081bed05-bb979ee77f23a4af-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--16c15c64

Observed at the sink on the outbound Kafka record headers

traceparent 00-c1db3b62976191a71019dedf081bed05-68b78cfc9335f080-00
tracestate 8478732@nr=0-0-8478732-572441051--4c7b05be26ad6b7f-0-0.373104-1794253947936,cptest=v1
test id
newrelic-python--rabbitmq-kafka--16c15c64
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-60a03c80,team=alpha
ot-baggage-routing-key rk-60a03c80
traceparent 00-8a3b971753949ad31d5cab69843d8464-67bf5bceea7b772a-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--a336c427

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

traceparent 00-8a3b971753949ad31d5cab69843d8464-17e90d654c580a0f-00
tracestate 8478732@nr=0-0-8478732-572441051--f2a109ee25d98721-0-0.814021-1794253948447,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--a336c427
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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