newrelic-python

Python zero-code newrelic (pypi)13.4.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.4.0 13.4.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:56 UTC
Harness
9b99070 · measured in backtest-newrelic-python-13.4.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.4.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-309fcdb2,team=alpha
ot-baggage-routing-key rk-309fcdb2
traceparent 00-dfb1d08655e7059404462fe07dc7b538-55d5c8598e535427-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--163ce98f

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-dfb1d08655e7059404462fe07dc7b538-8c6abdf4646233e6-00
tracestate 8478732@nr=0-0-8478732-572441051--ebad819293e91d0f-0-0.903663-1794254173934,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--163ce98f
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-0cfa2dc4,team=alpha
ot-baggage-routing-key rk-0cfa2dc4
traceparent 00-9e74943139d7c0a4c135d77c02720af0-c6ca6fa0e6c64be5-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--5c63c6f0

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-9e74943139d7c0a4c135d77c02720af0-1ccd890dfabe6fd7-00
tracestate 8478732@nr=0-0-8478732-572441051--5ef47fe0065da138-0-0.817117-1794254173939,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--5c63c6f0
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-3555bd30,team=alpha
ot-baggage-routing-key rk-3555bd30
traceparent 00-5080c844505cc4f778f70d2ba3c0fadf-4524f1b0b52414d5-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--bf9972fd

Observed at the sink on the outbound Kafka record headers

traceparent 00-5080c844505cc4f778f70d2ba3c0fadf-95435b5daf0e3c37-00
tracestate 8478732@nr=0-0-8478732-572441051--be216d4f5f7c23aa-0-0.60116-1794254173943,cptest=v1
test id
newrelic-python--http-kafka--bf9972fd
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-cf3cbde6,team=alpha
ot-baggage-routing-key rk-cf3cbde6
traceparent 00-ab85ea3259f8c69d33366e63c7fb68a8-8897cfb2e89119bd-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--e5170046

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

traceparent 00-ab85ea3259f8c69d33366e63c7fb68a8-42ee586b08a48539-00
tracestate 8478732@nr=0-0-8478732-572441051--773175c2dd4ed09e-0-0.419723-1794254173952,cptest=v1
test id
newrelic-python--http-rabbitmq--e5170046
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-e7e462cd,team=alpha
ot-baggage-routing-key rk-e7e462cd
traceparent 00-41cdb521d551610e5b3d73712958c6ab-e6556d704a5ed59f-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--ceff3625

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-41cdb521d551610e5b3d73712958c6ab-ee29d2529cfcb561-00
tracestate 8478732@nr=0-0-8478732-572441051--580566f77684f9b1-0-0.802911-1794254173994,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--ceff3625
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-ad714ceb,team=alpha
ot-baggage-routing-key rk-ad714ceb
traceparent 00-dae78392fd901bc242a56085b70edc75-a8f3ae453a79e70e-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--914b0a07

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-dae78392fd901bc242a56085b70edc75-f460d10a7d96ef38-00
tracestate 8478732@nr=0-0-8478732-572441051--799b354999ce0c05-0-0.224982-1794254174009,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--914b0a07
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-f12a599c,team=alpha
ot-baggage-routing-key rk-f12a599c
traceparent 00-f4bf1c282912bf4fdb05eb0274d95905-526b105900c68058-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--1f37a4f6

Observed at the sink on the outbound Kafka record headers

traceparent 00-f4bf1c282912bf4fdb05eb0274d95905-8d07d2e99ccc0afd-00
tracestate 8478732@nr=0-0-8478732-572441051--f40eeb2bf4179514-0-0.898508-1794254174041,cptest=v1
test id
newrelic-python--grpc-kafka--1f37a4f6
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-304061bd,team=alpha
ot-baggage-routing-key rk-304061bd
traceparent 00-0ce0ab47a69505c4c0bda7c397c9792c-2b29b1cf06196e6c-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--12f9bbc6

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

traceparent 00-0ce0ab47a69505c4c0bda7c397c9792c-a8716ad68cc64c24-00
tracestate 8478732@nr=0-0-8478732-572441051--2daa531c970f78b3-0-0.661036-1794254174072,cptest=v1
test id
newrelic-python--grpc-rabbitmq--12f9bbc6
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-31e4457c,team=alpha
ot-baggage-routing-key rk-31e4457c
traceparent 00-535c5575636ad5f0d766198f42758af8-8719fe432ab377d4-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--7f725548

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-535c5575636ad5f0d766198f42758af8-a4738c2f6dac4fd1-00
tracestate 8478732@nr=0-0-8478732-572441051--bbf5b1337c4978d3-0-0.797653-1794254174598,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--7f725548
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-8c5da52d,team=alpha
ot-baggage-routing-key rk-8c5da52d
traceparent 00-7138ede5622f41f67afe952d1db72522-6b5b2adf6f6585f3-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--591cf881

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-7138ede5622f41f67afe952d1db72522-f1885243f1c96863-00
tracestate 8478732@nr=0-0-8478732-572441051--b05c16436da8eed9-0-0.920324-1794254175105,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--591cf881
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-9033a61d,team=alpha
ot-baggage-routing-key rk-9033a61d
traceparent 00-0ce473d2be886fcdec14221c139596fd-a15d5d3914c8d457-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--b5bfd297

Observed at the sink on the outbound Kafka record headers

traceparent 00-0ce473d2be886fcdec14221c139596fd-462c01816919de56-00
tracestate 8478732@nr=0-0-8478732-572441051--87de663cdfb5ec7e-0-0.737576-1794254175609,cptest=v1
test id
newrelic-python--kafka-kafka--b5bfd297
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-d9d29cb5,team=alpha
ot-baggage-routing-key rk-d9d29cb5
traceparent 00-32fbd9e5cef4fcd72f4d8dddeed7fcfb-9f7e04b2700ad797-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--d92ad0e5

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

traceparent 00-32fbd9e5cef4fcd72f4d8dddeed7fcfb-be0a0a2c86a05539-00
tracestate 8478732@nr=0-0-8478732-572441051--122cc5831014fbe0-0-0.066731-1794254176119,cptest=v1
test id
newrelic-python--kafka-rabbitmq--d92ad0e5
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-e7527411,team=alpha
ot-baggage-routing-key rk-e7527411
traceparent 00-ba9b92f917f55d35d0f0d77b57f1eede-594df66f330af109-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--2fbc820f

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-ba9b92f917f55d35d0f0d77b57f1eede-266375007cbd8e05-00
tracestate 8478732@nr=0-0-8478732-572441051--58750b67d35039a0-0-0.790738-1794254176618,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--2fbc820f
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-59bd4af1,team=alpha
ot-baggage-routing-key rk-59bd4af1
traceparent 00-53c61c8005f176fbfbccc49e88336f18-a7cd8f4a4e3c8549-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--cd6d368a

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-53c61c8005f176fbfbccc49e88336f18-509fbc4a66e56eb2-00
tracestate 8478732@nr=0-0-8478732-572441051--ea489de725ec6c99-0-0.485081-1794254177118,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--cd6d368a
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-c65db760,team=alpha
ot-baggage-routing-key rk-c65db760
traceparent 00-e9858c429e9d1133b3238fdd1db20f60-16616ce9f6533e06-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--4a5f2d6a

Observed at the sink on the outbound Kafka record headers

traceparent 00-e9858c429e9d1133b3238fdd1db20f60-97ff4cb2cc9c1c0a-00
tracestate 8478732@nr=0-0-8478732-572441051--8f0b796579aee72b-0-0.577834-1794254177619,cptest=v1
test id
newrelic-python--rabbitmq-kafka--4a5f2d6a
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-118a02ca,team=alpha
ot-baggage-routing-key rk-118a02ca
traceparent 00-23e12a1023a596ebf2edf902a3661117-5f3dfcf84c63d5e4-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--88b07ecb

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

traceparent 00-23e12a1023a596ebf2edf902a3661117-28363a0668bbba2f-00
tracestate 8478732@nr=0-0-8478732-572441051--e449b0e70fcc02c5-0-0.89932-1794254178124,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--88b07ecb
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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