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
30 Nov 2026, 06:44 UTC
Harness
b33e402 · run run-2026-11-30
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
run-2026-11-30.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-f196ce22,team=alpha
ot-baggage-routing-key rk-f196ce22
traceparent 00-09f10ed526aa8ac7f75152ca10d995e4-86152091e8e82e75-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--fec0f025

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-09f10ed526aa8ac7f75152ca10d995e4-7cef6fdbad4cd9da-00
tracestate 8478732@nr=0-0-8478732-572441051--8579997049c769ee-0-0.65272-1796021062334,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--fec0f025
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-2a35161b,team=alpha
ot-baggage-routing-key rk-2a35161b
traceparent 00-08b61381519f63d7d830acdd730dd639-d994d6bbc75f80e2-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--1d45c63b

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-08b61381519f63d7d830acdd730dd639-7c9cf3e9d8165609-00
tracestate 8478732@nr=0-0-8478732-572441051--7cbde1916ebdd8c5-0-0.885786-1796021062340,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--1d45c63b
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-ada18e04,team=alpha
ot-baggage-routing-key rk-ada18e04
traceparent 00-55913cda05cf608d630517323130ee2d-a42d85d0202d4265-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--274496e7

Observed at the sink on the outbound Kafka record headers

traceparent 00-55913cda05cf608d630517323130ee2d-24e085f881ecd59e-00
tracestate 8478732@nr=0-0-8478732-572441051--356ecd5a5e3fc344-0-0.682564-1796021062344,cptest=v1
test id
newrelic-python--http-kafka--274496e7
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-05f1045e,team=alpha
ot-baggage-routing-key rk-05f1045e
traceparent 00-fd659a907f173a6b707cc95556e69a1e-bfbdc65fdb4c9d0c-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--c0b9015e

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

traceparent 00-fd659a907f173a6b707cc95556e69a1e-56d5eed24de26014-00
tracestate 8478732@nr=0-0-8478732-572441051--6328eb117c350cb0-0-0.151525-1796021062355,cptest=v1
test id
newrelic-python--http-rabbitmq--c0b9015e
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-8326ba3b,team=alpha
ot-baggage-routing-key rk-8326ba3b
traceparent 00-82065d8d2e7d125e77d80e37fbadc2d6-d1a081b40b7c29cf-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--d9aa59ce

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-82065d8d2e7d125e77d80e37fbadc2d6-ebe3cded8d17046c-00
tracestate 8478732@nr=0-0-8478732-572441051--0b121fce7a651d87-0-0.211169-1796021062408,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--d9aa59ce
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-6f7d747c,team=alpha
ot-baggage-routing-key rk-6f7d747c
traceparent 00-dbcda18847fd485864ca6e2b8d4c5f54-9c09588cd63e14ca-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--5c227991

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-dbcda18847fd485864ca6e2b8d4c5f54-8527fabebcba1f50-00
tracestate 8478732@nr=0-0-8478732-572441051--f33d405fa69c1e96-0-0.155037-1796021062431,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--5c227991
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-9aabd7ef,team=alpha
ot-baggage-routing-key rk-9aabd7ef
traceparent 00-1fdb0640759e95ca510ca007e720e2e4-1685aa9131169a64-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--03395838

Observed at the sink on the outbound Kafka record headers

traceparent 00-1fdb0640759e95ca510ca007e720e2e4-5899cc105218ba7c-00
tracestate 8478732@nr=0-0-8478732-572441051--77d39ff28a5fdf9c-0-0.523438-1796021062445,cptest=v1
test id
newrelic-python--grpc-kafka--03395838
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-f7dde101,team=alpha
ot-baggage-routing-key rk-f7dde101
traceparent 00-388e3e4fb6b1db893eeb157f3f555bb8-21a8550e67986e43-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--d4ee03e2

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

traceparent 00-388e3e4fb6b1db893eeb157f3f555bb8-d53a705ca3caed18-00
tracestate 8478732@nr=0-0-8478732-572441051--bc9bbf94f593f07e-0-0.995352-1796021063072,cptest=v1
test id
newrelic-python--grpc-rabbitmq--d4ee03e2
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-775533c5,team=alpha
ot-baggage-routing-key rk-775533c5
traceparent 00-81c9390c33193bb416ba239b60b8a239-e09825501e3d7978-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--f58da773

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-81c9390c33193bb416ba239b60b8a239-13fe96d1b67b3f8b-00
tracestate 8478732@nr=0-0-8478732-572441051--ba5dd63268a71df4-0-0.589384-1796021063598,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--f58da773
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-1d6558bf,team=alpha
ot-baggage-routing-key rk-1d6558bf
traceparent 00-46bf0698e87e32001565b5d253904b48-14b29bb979c8cca3-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--229852fe

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-46bf0698e87e32001565b5d253904b48-38a3a4fa9a4d9737-00
tracestate 8478732@nr=0-0-8478732-572441051--f0cb14583ffec4a4-0-0.145659-1796021064101,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--229852fe
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-a9b2a240,team=alpha
ot-baggage-routing-key rk-a9b2a240
traceparent 00-ba32ad450fc44fedd68eefdac551bfed-15040caeabd56880-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--0c3bee5c

Observed at the sink on the outbound Kafka record headers

traceparent 00-ba32ad450fc44fedd68eefdac551bfed-6e3a58fc49c4db73-00
tracestate 8478732@nr=0-0-8478732-572441051--5dad46c2dab8e063-0-0.197507-1796021064606,cptest=v1
test id
newrelic-python--kafka-kafka--0c3bee5c
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-922b865c,team=alpha
ot-baggage-routing-key rk-922b865c
traceparent 00-9e1dd651aeec7e04ca73ba5e00f2d452-9dfb910a0cb0deec-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--b6c4b094

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

traceparent 00-9e1dd651aeec7e04ca73ba5e00f2d452-4255e37d42acfa51-00
tracestate 8478732@nr=0-0-8478732-572441051--99115d0b81541042-0-0.658471-1796021065119,cptest=v1
test id
newrelic-python--kafka-rabbitmq--b6c4b094
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-0e34860a,team=alpha
ot-baggage-routing-key rk-0e34860a
traceparent 00-0f9af7d9c4608e91a4c1827aae1992cc-2726cf9ccb162fff-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--35d18cd9

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-0f9af7d9c4608e91a4c1827aae1992cc-2793bbc9d630cb19-00
tracestate 8478732@nr=0-0-8478732-572441051--b3365a0a04e1627c-0-0.5633-1796021065613,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--35d18cd9
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-93443712,team=alpha
ot-baggage-routing-key rk-93443712
traceparent 00-9a20cf4560c7de72aa03706a8223cf80-568054d304b4dfcd-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--165dc17c

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-9a20cf4560c7de72aa03706a8223cf80-e248f9a99793635f-00
tracestate 8478732@nr=0-0-8478732-572441051--604a25d9c121a5f2-0-0.658235-1796021066113,cptest=v1
user-agent grpc-python/1.85.3 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--165dc17c
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-55123d37,team=alpha
ot-baggage-routing-key rk-55123d37
traceparent 00-511e1fcaca879f16a2a28a0e503673d8-91f592fe3e153738-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--f65466d5

Observed at the sink on the outbound Kafka record headers

traceparent 00-511e1fcaca879f16a2a28a0e503673d8-58d4718e2a6b2b72-00
tracestate 8478732@nr=0-0-8478732-572441051--5606361b5f4b28f8-0-0.781128-1796021066614,cptest=v1
test id
newrelic-python--rabbitmq-kafka--f65466d5
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-eeca93a0,team=alpha
ot-baggage-routing-key rk-eeca93a0
traceparent 00-4c19331d4faad77fa6baf8d09984d5c4-96ab976ff45891c5-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--620ec3b3

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

traceparent 00-4c19331d4faad77fa6baf8d09984d5c4-384207efde95b99f-00
tracestate 8478732@nr=0-0-8478732-572441051--629489c520b923d5-0-0.866363-1796021067121,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--620ec3b3
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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