newrelic-python

Python zero-code newrelic (pypi)13.6.1

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.1 13.6.1 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:49 UTC
Harness
9b99070 · measured in backtest-newrelic-python-13.6.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
13.6.1.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-bc4db151,team=alpha
ot-baggage-routing-key rk-bc4db151
traceparent 00-dce9fd4553a7f2314d24d91477e237a6-2463deebc1371654-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--73de3eab

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-dce9fd4553a7f2314d24d91477e237a6-b0c0646c07406cc3-01
tracestate 8478732@nr=0-0-8478732-572441051--e33b2e53957ccb64-1-2.110156-1794253743440,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--73de3eab
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-23dde89c,team=alpha
ot-baggage-routing-key rk-23dde89c
traceparent 00-b4cbaf4f4702fc72e444974feee59ceb-0559f2446a231923-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--391ce687

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-b4cbaf4f4702fc72e444974feee59ceb-e28fee22df1f937e-00
tracestate 8478732@nr=0-0-8478732-572441051--e9915d81bc5f480e-0-0.364727-1794253743446,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--391ce687
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-d882ac5c,team=alpha
ot-baggage-routing-key rk-d882ac5c
traceparent 00-ed7a626f7850d91233ff6c7f15dd2fe7-cd5504ca8fb4e53d-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--0005c9a2

Observed at the sink on the outbound Kafka record headers

traceparent 00-ed7a626f7850d91233ff6c7f15dd2fe7-eab1a3cb405a1f70-00
tracestate 8478732@nr=0-0-8478732-572441051--ba83908d8af91432-0-0.161499-1794253743450,cptest=v1
test id
newrelic-python--http-kafka--0005c9a2
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-bde66e2a,team=alpha
ot-baggage-routing-key rk-bde66e2a
traceparent 00-b0b6a649984cf0f1527f22bcd8a19f5c-0444cba2c86bf0a2-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--c94ca0bf

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

traceparent 00-b0b6a649984cf0f1527f22bcd8a19f5c-ee3daf8b3e7b2ee8-00
tracestate 8478732@nr=0-0-8478732-572441051--a6d6dce9547de17a-0-0.243875-1794253743963,cptest=v1
test id
newrelic-python--http-rabbitmq--c94ca0bf
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-ef266388,team=alpha
ot-baggage-routing-key rk-ef266388
traceparent 00-e976db666c7bb1050295f62c9a1cb71f-39f9f9c3941e2f11-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--87b44057

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-e976db666c7bb1050295f62c9a1cb71f-4adb2ec53fd69766-00
tracestate 8478732@nr=0-0-8478732-572441051--c9655dddf4e616b9-0-0.757067-1794253743984,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--87b44057
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-6a778d08,team=alpha
ot-baggage-routing-key rk-6a778d08
traceparent 00-aced4350f1bf331108c13769918822d0-ddb93308b28687f0-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--ebc61ed4

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-aced4350f1bf331108c13769918822d0-7f7db433631952ac-00
tracestate 8478732@nr=0-0-8478732-572441051--173a3b1939379e0a-0-0.571864-1794253744055,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--ebc61ed4
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-571b4740,team=alpha
ot-baggage-routing-key rk-571b4740
traceparent 00-6243c3ece7be111c3f1e43b127a8efff-409b9dfedbe4b370-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--b4e21854

Observed at the sink on the outbound Kafka record headers

traceparent 00-6243c3ece7be111c3f1e43b127a8efff-cd542eccc9e9bdb6-00
tracestate 8478732@nr=0-0-8478732-572441051--f7b6e445072b1a6d-0-0.031795-1794253744082,cptest=v1
test id
newrelic-python--grpc-kafka--b4e21854
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-bb5676cc,team=alpha
ot-baggage-routing-key rk-bb5676cc
traceparent 00-42da5915333a18aa3d3b954c35ec5bf4-34427a8752a08054-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--c3505efe

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

traceparent 00-42da5915333a18aa3d3b954c35ec5bf4-aaa9c8a988f48425-00
tracestate 8478732@nr=0-0-8478732-572441051--4ed16249c8f2a8d3-0-0.280039-1794253744113,cptest=v1
test id
newrelic-python--grpc-rabbitmq--c3505efe
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-7d0df8cb,team=alpha
ot-baggage-routing-key rk-7d0df8cb
traceparent 00-889a95e93e93bc3860cea09d720c393e-41f5129af2ab2da8-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--facf2e26

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-889a95e93e93bc3860cea09d720c393e-3c2842c116f5bc1f-00
tracestate 8478732@nr=0-0-8478732-572441051--9e5d8f44bf4a8d0d-0-0.064862-1794253744647,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--facf2e26
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-9faecd69,team=alpha
ot-baggage-routing-key rk-9faecd69
traceparent 00-6c06e406d92d29c5d752c97d9bd31e2b-61c78cb6f12b91a4-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--f447b52e

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-6c06e406d92d29c5d752c97d9bd31e2b-06b7bc051ff3fe7d-00
tracestate 8478732@nr=0-0-8478732-572441051--6f225dcecc34bcba-0-0.393309-1794253745152,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--f447b52e
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-feaa80e2,team=alpha
ot-baggage-routing-key rk-feaa80e2
traceparent 00-23ee7a154e4cb43404f97c4fa38841a6-e8e3f3d2d31dda06-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--5f93fb07

Observed at the sink on the outbound Kafka record headers

traceparent 00-23ee7a154e4cb43404f97c4fa38841a6-dea7de4a56e1167b-00
tracestate 8478732@nr=0-0-8478732-572441051--a4857c84b8fef719-0-0.58901-1794253745657,cptest=v1
test id
newrelic-python--kafka-kafka--5f93fb07
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-9ecbbc4a,team=alpha
ot-baggage-routing-key rk-9ecbbc4a
traceparent 00-6d5eb3150d9de0c80fbfe6cf5a73981e-79aaaa46a31047ac-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--c2bd3d26

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

traceparent 00-6d5eb3150d9de0c80fbfe6cf5a73981e-e6ee758ffc642dc2-00
tracestate 8478732@nr=0-0-8478732-572441051--ab62a1286f205287-0-0.541222-1794253746176,cptest=v1
test id
newrelic-python--kafka-rabbitmq--c2bd3d26
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-d7430cad,team=alpha
ot-baggage-routing-key rk-d7430cad
traceparent 00-6ec5807d3cc09f886ebdec81c09ca083-3cb26b910738613e-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--bd3dcc52

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-6ec5807d3cc09f886ebdec81c09ca083-0dcd39c27941983e-00
tracestate 8478732@nr=0-0-8478732-572441051--608c777adf5a06f2-0-0.390678-1794253746669,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--bd3dcc52
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-a44dae66,team=alpha
ot-baggage-routing-key rk-a44dae66
traceparent 00-14aa89d6ef6ab8e6e8a250e496423d6e-69f6c7cb8da65de5-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--5fd51940

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-14aa89d6ef6ab8e6e8a250e496423d6e-e097c1ecdc395be9-00
tracestate 8478732@nr=0-0-8478732-572441051--7d77a1bce263e90d-0-0.296222-1794253747171,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--5fd51940
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-4c4ab6e1,team=alpha
ot-baggage-routing-key rk-4c4ab6e1
traceparent 00-0a2e3f12db7916a4e411f19456416fd4-090e9d024b68da7b-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--dc363626

Observed at the sink on the outbound Kafka record headers

traceparent 00-0a2e3f12db7916a4e411f19456416fd4-376121b9ecfa5840-00
tracestate 8478732@nr=0-0-8478732-572441051--e2486f9fbdea93a0-0-0.811268-1794253747676,cptest=v1
test id
newrelic-python--rabbitmq-kafka--dc363626
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-87a48ba5,team=alpha
ot-baggage-routing-key rk-87a48ba5
traceparent 00-c0ac04ea0f29194ae480aeb0c8d7733c-7ec5f4bdff6531d1-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--feb3e64b

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

traceparent 00-c0ac04ea0f29194ae480aeb0c8d7733c-4cc49f8ca60dcaa7-00
tracestate 8478732@nr=0-0-8478732-572441051--388b01b94d2536e2-0-0.138398-1794253748186,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--feb3e64b
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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