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
23 Nov 2026, 13:42 UTC
Harness
0ac8158 · run run-2026-11-24.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-24.1.json → variants[id = "newrelic-python"]

Libraries

confluent-kafka2.16.1
flask3.1.3
grpcio1.85.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-8288ac14,team=alpha
ot-baggage-routing-key rk-8288ac14
traceparent 00-4ae0cce4d54121337448d9199eb7abb3-dcd932f9b4e2432b-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--5a35eab3

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-4ae0cce4d54121337448d9199eb7abb3-ce4f983f35ed53cc-00
tracestate 8478732@nr=0-0-8478732-572441051--1e73c51379d839e0-0-0.889344-1795441323669,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--5a35eab3
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-2514fc14,team=alpha
ot-baggage-routing-key rk-2514fc14
traceparent 00-7c376c3369d621dea82c70b34c5e718f-f61845006a8fadb1-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--20dbc96c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-7c376c3369d621dea82c70b34c5e718f-b384f1fa33038176-00
tracestate 8478732@nr=0-0-8478732-572441051--d3023a3aff54b92c-0-0.668346-1795441323680,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--20dbc96c
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-927b1432,team=alpha
ot-baggage-routing-key rk-927b1432
traceparent 00-98d7d086d139143289f4546d11ce22b8-76fd1c01010787b6-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--5d244c6b

Observed at the sink on the outbound Kafka record headers

traceparent 00-98d7d086d139143289f4546d11ce22b8-5c73d719acae8647-00
tracestate 8478732@nr=0-0-8478732-572441051--d6a7d84fe25b6eac-0-0.882838-1795441323685,cptest=v1
test id
newrelic-python--http-kafka--5d244c6b
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-d97418bb,team=alpha
ot-baggage-routing-key rk-d97418bb
traceparent 00-eec1e8d76d3fca2e7ce21237c382b230-6ad56178dfc9a922-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--7ceb3b67

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

traceparent 00-eec1e8d76d3fca2e7ce21237c382b230-1846addb033dee6b-00
tracestate 8478732@nr=0-0-8478732-572441051--9e8dfda41cd9f097-0-0.66604-1795441324200,cptest=v1
test id
newrelic-python--http-rabbitmq--7ceb3b67
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-683ff54d,team=alpha
ot-baggage-routing-key rk-683ff54d
traceparent 00-f54c1ffa44bc3e3c998b930da4c9b50a-4978239275d644ff-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--911335c0

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-f54c1ffa44bc3e3c998b930da4c9b50a-84055b96840bfb4f-00
tracestate 8478732@nr=0-0-8478732-572441051--00354081074bf8f5-0-0.296451-1795441324218,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--911335c0
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-0a253a0a,team=alpha
ot-baggage-routing-key rk-0a253a0a
traceparent 00-99b28acfb6e50c929f424683ae0a31ea-e4b8c3be6af76784-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--d5bccb60

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-99b28acfb6e50c929f424683ae0a31ea-dcde98e7d08f68c8-00
tracestate 8478732@nr=0-0-8478732-572441051--8755a12b36a1700b-0-0.36672-1795441324325,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--d5bccb60
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-b17465f7,team=alpha
ot-baggage-routing-key rk-b17465f7
traceparent 00-56eecf9ee93e3a7cb7580adb7a050f90-dc0fae9eab4862ed-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--73312418

Observed at the sink on the outbound Kafka record headers

traceparent 00-56eecf9ee93e3a7cb7580adb7a050f90-55ab8fc161ea7972-00
tracestate 8478732@nr=0-0-8478732-572441051--1f114db546416e78-0-0.015899-1795441324340,cptest=v1
test id
newrelic-python--grpc-kafka--73312418
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-3f43d99b,team=alpha
ot-baggage-routing-key rk-3f43d99b
traceparent 00-194f4c929c58f62b20f1093b545c8e9e-feec6e096234143f-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--982f8026

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

traceparent 00-194f4c929c58f62b20f1093b545c8e9e-bf8888baa81ac232-00
tracestate 8478732@nr=0-0-8478732-572441051--eef6d7e695b30707-0-0.783624-1795441324450,cptest=v1
test id
newrelic-python--grpc-rabbitmq--982f8026
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-80935a8b,team=alpha
ot-baggage-routing-key rk-80935a8b
traceparent 00-5fde0bfc232eddae4fc3958092b194ec-11ef77a8fd718e80-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--2edc5895

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-5fde0bfc232eddae4fc3958092b194ec-43a9f747feacfcb9-00
tracestate 8478732@nr=0-0-8478732-572441051--2533157315179f61-0-0.609505-1795441324980,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--2edc5895
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-96cfd109,team=alpha
ot-baggage-routing-key rk-96cfd109
traceparent 00-edf2dea5c794b46189a96344570b80f6-29512c07ee1cc2bb-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--51e06253

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-edf2dea5c794b46189a96344570b80f6-b5b896e91ceeefbd-00
tracestate 8478732@nr=0-0-8478732-572441051--f4e68ba4a069af00-0-0.163325-1795441325488,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--51e06253
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-d814a948,team=alpha
ot-baggage-routing-key rk-d814a948
traceparent 00-1329c3c8bf1c558f7d59aba985d6c61e-728c48a9ce6efb30-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--6a6d5c33

Observed at the sink on the outbound Kafka record headers

traceparent 00-1329c3c8bf1c558f7d59aba985d6c61e-6df07c233822f284-00
tracestate 8478732@nr=0-0-8478732-572441051--351238e8b5b8d534-0-0.527513-1795441325993,cptest=v1
test id
newrelic-python--kafka-kafka--6a6d5c33
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-c06c50d5,team=alpha
ot-baggage-routing-key rk-c06c50d5
traceparent 00-641430f005547e4d51f6e7084236da83-477d715a83918f95-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--b5e0fc94

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

traceparent 00-641430f005547e4d51f6e7084236da83-b8552907859ca66c-00
tracestate 8478732@nr=0-0-8478732-572441051--5bc08229ecf8482e-0-0.039016-1795441326507,cptest=v1
test id
newrelic-python--kafka-rabbitmq--b5e0fc94
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-3fbea84c,team=alpha
ot-baggage-routing-key rk-3fbea84c
traceparent 00-c02098815df74cb215d212f3a6ad9ab2-5dab7e889b302ba2-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--f883ddf3

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-c02098815df74cb215d212f3a6ad9ab2-27c70d8443fddd48-00
tracestate 8478732@nr=0-0-8478732-572441051--e10bdfdaa9fa7fab-0-0.975759-1795441327000,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--f883ddf3
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-48a84f97,team=alpha
ot-baggage-routing-key rk-48a84f97
traceparent 00-cd062a4c6a2864ce16c1738cdd0527bc-28d57bfb76d9a0a8-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--c804f32f

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-cd062a4c6a2864ce16c1738cdd0527bc-542442d097f7a4a8-00
tracestate 8478732@nr=0-0-8478732-572441051--bbf7b6c2c445fff6-0-0.165256-1795441327504,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--c804f32f
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-c0859e3a,team=alpha
ot-baggage-routing-key rk-c0859e3a
traceparent 00-abc7865aa8a9d6dfed3f34a7d64e8f88-a7562ec93ef6d389-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--f70c7dd3

Observed at the sink on the outbound Kafka record headers

traceparent 00-abc7865aa8a9d6dfed3f34a7d64e8f88-2116a40eff45e74e-00
tracestate 8478732@nr=0-0-8478732-572441051--706b2a87a4738908-0-0.865094-1795441328005,cptest=v1
test id
newrelic-python--rabbitmq-kafka--f70c7dd3
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-6ee77bc9,team=alpha
ot-baggage-routing-key rk-6ee77bc9
traceparent 00-9d14a968d3850bbdaa1d05b06d3b68b9-10aef22cd756943b-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--0b29303e

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

traceparent 00-9d14a968d3850bbdaa1d05b06d3b68b9-de859b89f75ae0db-00
tracestate 8478732@nr=0-0-8478732-572441051--f76ecbb332d23255-0-0.676066-1795441328514,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--0b29303e
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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