newrelic-python

Python zero-code newrelic (pypi)14.0.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 14.0.0 14.0.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:45 UTC
Harness
9b99070 · measured in backtest-newrelic-python-14.0.0
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.0.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-a8395bbe,team=alpha
ot-baggage-routing-key rk-a8395bbe
traceparent 00-604054e6085e0d99efabfeb61c660582-b609fe157f4ac100-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--9d811651

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-604054e6085e0d99efabfeb61c660582-f78f44ea1071ff68-00
tracestate 8478732@nr=0-0-8478732-572441051--9c759620cd1af1c5-0-0.234114-1794253521825,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--9d811651
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-ba8e1b77,team=alpha
ot-baggage-routing-key rk-ba8e1b77
traceparent 00-d8c102d3e2e08dcffabd9b39755ff19d-21885beb0a50d557-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--c22c2c48

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-d8c102d3e2e08dcffabd9b39755ff19d-8c2740c0f758005a-00
tracestate 8478732@nr=0-0-8478732-572441051--7827ce577f0d7a6a-0-0.562566-1794253521832,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--c22c2c48
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-76de840f,team=alpha
ot-baggage-routing-key rk-76de840f
traceparent 00-b9c4452e596cf5df5b64a2dac62770d5-3f0978fd10dd1e7e-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--4e1c30f3

Observed at the sink on the outbound Kafka record headers

traceparent 00-b9c4452e596cf5df5b64a2dac62770d5-4a1f58ef4379835b-00
tracestate 8478732@nr=0-0-8478732-572441051--edeb54c9e07c1849-0-0.971505-1794253521838,cptest=v1
test id
newrelic-python--http-kafka--4e1c30f3
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-e463030c,team=alpha
ot-baggage-routing-key rk-e463030c
traceparent 00-3e8c7571d297ce98352c1d1b1c85c5c4-c58933bfb8ab353c-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--fe9ef5ee

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

traceparent 00-3e8c7571d297ce98352c1d1b1c85c5c4-eec1bdc65eb97c17-00
tracestate 8478732@nr=0-0-8478732-572441051--01539c10b59198ad-0-0.485996-1794253522352,cptest=v1
test id
newrelic-python--http-rabbitmq--fe9ef5ee
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-92680318,team=alpha
ot-baggage-routing-key rk-92680318
traceparent 00-b71582a5aae09afcb3c1b3f2862534f2-3183152033a5928a-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--efa2a27d

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-b71582a5aae09afcb3c1b3f2862534f2-434c9f25d7036323-00
tracestate 8478732@nr=0-0-8478732-572441051--6dd1357a91003c78-0-0.527767-1794253522408,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--efa2a27d
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-cf247301,team=alpha
ot-baggage-routing-key rk-cf247301
traceparent 00-24ad71dd9242d5f79fc50bbc01e33d39-dfb30d6d061e97e2-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--a7abb522

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-24ad71dd9242d5f79fc50bbc01e33d39-a07e975f6b93222a-00
tracestate 8478732@nr=0-0-8478732-572441051--11a1fa8bf23a3b74-0-0.090803-1794253522420,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--a7abb522
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-636e16a4,team=alpha
ot-baggage-routing-key rk-636e16a4
traceparent 00-9be7071f7bda73b7927651270169eaa4-7861cddcb65a5403-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--046b86a5

Observed at the sink on the outbound Kafka record headers

traceparent 00-9be7071f7bda73b7927651270169eaa4-c63cc27f2b55bfb4-00
tracestate 8478732@nr=0-0-8478732-572441051--3a363492ab057361-0-0.182815-1794253522429,cptest=v1
test id
newrelic-python--grpc-kafka--046b86a5
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-e23c36de,team=alpha
ot-baggage-routing-key rk-e23c36de
traceparent 00-5b02e2430ab3391bf7cdaa3899cd9751-f12054fbb6c87a30-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--c2954438

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

traceparent 00-5b02e2430ab3391bf7cdaa3899cd9751-f618b00455b0e8d7-00
tracestate 8478732@nr=0-0-8478732-572441051--8fb089dc153b1bb4-0-0.145568-1794253522995,cptest=v1
test id
newrelic-python--grpc-rabbitmq--c2954438
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-f0ef2127,team=alpha
ot-baggage-routing-key rk-f0ef2127
traceparent 00-d2bcd4be6747fc756282ae89dc6df927-cc8fca0b9bbb9148-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--6935cc8f

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-d2bcd4be6747fc756282ae89dc6df927-30ae752fb0187afb-00
tracestate 8478732@nr=0-0-8478732-572441051--afdd6a08c75d397a-0-0.003908-1794253523524,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--6935cc8f
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-ae76a279,team=alpha
ot-baggage-routing-key rk-ae76a279
traceparent 00-47b6dffacb265f9b3c08605a84fdc0b5-442ec0eadd0328ba-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--affdb315

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-47b6dffacb265f9b3c08605a84fdc0b5-c732fd2a52e50dbc-00
tracestate 8478732@nr=0-0-8478732-572441051--47ff3227b189e055-0-0.254725-1794253524025,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--affdb315
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-d17a6ad7,team=alpha
ot-baggage-routing-key rk-d17a6ad7
traceparent 00-3edbb0ffd37cbeec7d823988ed29bae6-2b37839a90db65ad-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--52da6d19

Observed at the sink on the outbound Kafka record headers

traceparent 00-3edbb0ffd37cbeec7d823988ed29bae6-8fe6f24b27274222-00
tracestate 8478732@nr=0-0-8478732-572441051--5eb7117d0019e975-0-0.436579-1794253524531,cptest=v1
test id
newrelic-python--kafka-kafka--52da6d19
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-b13d6ad6,team=alpha
ot-baggage-routing-key rk-b13d6ad6
traceparent 00-22847684ccf0b6a745fcc0d7a8a8de6c-5e1cfa4a68b316e0-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--c602cc5f

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

traceparent 00-22847684ccf0b6a745fcc0d7a8a8de6c-9b27f0beb5c7b322-00
tracestate 8478732@nr=0-0-8478732-572441051--1f14e354d833aeaa-0-0.350242-1794253525044,cptest=v1
test id
newrelic-python--kafka-rabbitmq--c602cc5f
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-0ad91668,team=alpha
ot-baggage-routing-key rk-0ad91668
traceparent 00-ef7c5404336011e3a51d3f3165051aa2-e81b3fd307a70328-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--c9f15c26

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-ef7c5404336011e3a51d3f3165051aa2-eff75e4e716142fe-00
tracestate 8478732@nr=0-0-8478732-572441051--356fbe9bf27c5f9a-0-0.160447-1794253525539,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--c9f15c26
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-e110dab4,team=alpha
ot-baggage-routing-key rk-e110dab4
traceparent 00-67409b8bc027cc0d0d6d506300994422-4105485304a6feea-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--5cce6fc4

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-67409b8bc027cc0d0d6d506300994422-97e2bb58e603d978-00
tracestate 8478732@nr=0-0-8478732-572441051--b8c5df53afb6cd64-0-0.989982-1794253526043,cptest=v1
user-agent grpc-python/1.83.1 grpc-c/56.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--5cce6fc4
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-facc82fb,team=alpha
ot-baggage-routing-key rk-facc82fb
traceparent 00-4c54cbd072b71a976a371a94530f7206-27753577e0b377bd-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--b3504cb4

Observed at the sink on the outbound Kafka record headers

traceparent 00-4c54cbd072b71a976a371a94530f7206-2be9cacb17984294-00
tracestate 8478732@nr=0-0-8478732-572441051--359e95d61ab99b6d-0-0.339035-1794253526545,cptest=v1
test id
newrelic-python--rabbitmq-kafka--b3504cb4
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-2c1df2c5,team=alpha
ot-baggage-routing-key rk-2c1df2c5
traceparent 00-d45fee5b6d44470e291263b48052312b-02988f067d6834cf-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--a7ae82da

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

traceparent 00-d45fee5b6d44470e291263b48052312b-37f5443fb2991e01-00
tracestate 8478732@nr=0-0-8478732-572441051--7d9c087a471ca282-0-0.176514-1794253527057,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--a7ae82da
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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