newrelic-python

Python zero-code newrelic (pypi)14.2.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.2.0 14.2.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
13 Nov 2026, 08:45 UTC
Harness
c829db4 · measured in run-2026-11-13.1
Requires
NEW_RELIC_LICENSE_KEY
Raw JSON
14.2.0.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-ec60dd82,team=alpha
ot-baggage-routing-key rk-ec60dd82
traceparent 00-4d0c33a2ba036f6147161be5e18b6f28-71f2b6c2c53f1121-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-http--5eadf2d9

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-4d0c33a2ba036f6147161be5e18b6f28-6b857abfc8bcfaad-00
tracestate 8478732@nr=0-0-8478732-572441051--6db9fd5dc4b7a058-0-0.189887-1794559519297,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--http-http--5eadf2d9
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-0b850f94,team=alpha
ot-baggage-routing-key rk-0b850f94
traceparent 00-c8eec8b4b9dc13fb45ebeb4545bb06e4-67557b7253dceac5-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-grpc--90684108

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-c8eec8b4b9dc13fb45ebeb4545bb06e4-b73d939573b4053b-00
tracestate 8478732@nr=0-0-8478732-572441051--13c4cf28125aecfd-0-0.414875-1794559519306,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--http-grpc--90684108
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-3da99dd1,team=alpha
ot-baggage-routing-key rk-3da99dd1
traceparent 00-0f74b1182212310d35bc159786d17071-3f8770b8a6c26862-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-kafka--7efdacd6

Observed at the sink on the outbound Kafka record headers

traceparent 00-0f74b1182212310d35bc159786d17071-7ecc18119ad1b809-00
tracestate 8478732@nr=0-0-8478732-572441051--85065c8f0c53cabf-0-0.314151-1794559519314,cptest=v1
test id
newrelic-python--http-kafka--7efdacd6
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-f593fd66,team=alpha
ot-baggage-routing-key rk-f593fd66
traceparent 00-6bfbd51e9a2747579d704897298e108b-84fb706f82c2bfd4-01
tracestate cptest=v1
x-cp-canary newrelic-python--http-rabbitmq--dc2dc54c

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

traceparent 00-6bfbd51e9a2747579d704897298e108b-efd75ad79d59bcb6-00
tracestate 8478732@nr=0-0-8478732-572441051--ee00227b582ce470-0-0.63635-1794559519326,cptest=v1
test id
newrelic-python--http-rabbitmq--dc2dc54c
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-dbc055c4,team=alpha
ot-baggage-routing-key rk-dbc055c4
traceparent 00-79667a788eab357f957764d60cd54300-d0bbece98405af8b-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-http--1e4c95e3

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-79667a788eab357f957764d60cd54300-d434557dfbfc91ec-00
tracestate 8478732@nr=0-0-8478732-572441051--212f9c1a1d0d37b9-0-0.155504-1794559519344,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--grpc-http--1e4c95e3
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-ea155f07,team=alpha
ot-baggage-routing-key rk-ea155f07
traceparent 00-2de6a898e53603efc08990c587e657ff-b161eb2c0b8c6c91-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-grpc--58c7b891

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-2de6a898e53603efc08990c587e657ff-fa5eab6ee09ebe92-00
tracestate 8478732@nr=0-0-8478732-572441051--b7700a555ea69dcd-0-0.325559-1794559519357,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--grpc-grpc--58c7b891
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-c6d62b62,team=alpha
ot-baggage-routing-key rk-c6d62b62
traceparent 00-afe85b4cd661f66b1a6ea52012711fcb-86524eb09dd53ae8-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-kafka--5e27ca6f

Observed at the sink on the outbound Kafka record headers

traceparent 00-afe85b4cd661f66b1a6ea52012711fcb-5b544342947b4a0d-00
tracestate 8478732@nr=0-0-8478732-572441051--aeb86e70ae021f2b-0-0.965697-1794559519452,cptest=v1
test id
newrelic-python--grpc-kafka--5e27ca6f
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-0d2082fa,team=alpha
ot-baggage-routing-key rk-0d2082fa
traceparent 00-695cc8523271e982e82cf1b521a0668c-c665322c10968b79-01
tracestate cptest=v1
x-cp-canary newrelic-python--grpc-rabbitmq--16354369

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

traceparent 00-695cc8523271e982e82cf1b521a0668c-f295c26525d1a217-00
tracestate 8478732@nr=0-0-8478732-572441051--4421c10ee5ce049d-0-0.64745-1794559519991,cptest=v1
test id
newrelic-python--grpc-rabbitmq--16354369
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-7dde62c0,team=alpha
ot-baggage-routing-key rk-7dde62c0
traceparent 00-fd1e2a1d8ee536fd703dab5d0b04d6d7-2639176e357bb732-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-http--203a99ea

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-fd1e2a1d8ee536fd703dab5d0b04d6d7-df235985c2473a19-00
tracestate 8478732@nr=0-0-8478732-572441051--c319d45f50c78139-0-0.335382-1794559520523,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--kafka-http--203a99ea
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-bcd1ec98,team=alpha
ot-baggage-routing-key rk-bcd1ec98
traceparent 00-95b78e8a03d08db8ad189fc27d27dba0-5f5f90dd702bb03b-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-grpc--5a85eda6

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-95b78e8a03d08db8ad189fc27d27dba0-a739f4bf3fb1ec9a-00
tracestate 8478732@nr=0-0-8478732-572441051--d03fef9e1d8ec74d-0-0.525782-1794559521028,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--kafka-grpc--5a85eda6
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-28cd81d7,team=alpha
ot-baggage-routing-key rk-28cd81d7
traceparent 00-80f1e9d27caa58e15b2c4a10b96eb698-1fdea94081850253-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-kafka--f862e50f

Observed at the sink on the outbound Kafka record headers

traceparent 00-80f1e9d27caa58e15b2c4a10b96eb698-41914d17f2ec3cb0-00
tracestate 8478732@nr=0-0-8478732-572441051--89746ca280ee159e-0-0.235008-1794559521530,cptest=v1
test id
newrelic-python--kafka-kafka--f862e50f
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-8102a297,team=alpha
ot-baggage-routing-key rk-8102a297
traceparent 00-e4d0c3e16d469683fd99a9c0f723ac34-de21bf9025c4c3c6-01
tracestate cptest=v1
x-cp-canary newrelic-python--kafka-rabbitmq--3f7d5f64

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

traceparent 00-e4d0c3e16d469683fd99a9c0f723ac34-e29f47f135f89a75-00
tracestate 8478732@nr=0-0-8478732-572441051--45965ac8d6ddf78d-0-0.89663-1794559522056,cptest=v1
test id
newrelic-python--kafka-rabbitmq--3f7d5f64
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-4fbdd215,team=alpha
ot-baggage-routing-key rk-4fbdd215
traceparent 00-fee14271a2068d0f69cc02dc1d110ff5-48aacf7c52b0f8f3-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-http--a9a6d596

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-fee14271a2068d0f69cc02dc1d110ff5-4e004e849367ec35-00
tracestate 8478732@nr=0-0-8478732-572441051--c296d4b43694e12d-0-0.647918-1794559522539,cptest=v1
user-agent python-requests/2.34.2
test id
newrelic-python--rabbitmq-http--a9a6d596
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-ef2f073f,team=alpha
ot-baggage-routing-key rk-ef2f073f
traceparent 00-48216bbd74bfa132ac9dcacf477b4ebd-30c9e53d08fef250-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-grpc--65a91c64

Observed at the sink on the outbound gRPC metadata

:authority sink:9081
content-type application/grpc
grpc-accept-encoding identity, deflate, gzip
traceparent 00-48216bbd74bfa132ac9dcacf477b4ebd-cde5ad60508d7e0d-00
tracestate 8478732@nr=0-0-8478732-572441051--a001bb06df062773-0-0.561904-1794559523039,cptest=v1
user-agent grpc-python/1.85.1 grpc-c/58.0.0 (linux; chttp2)
test id
newrelic-python--rabbitmq-grpc--65a91c64
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-e6c7b501,team=alpha
ot-baggage-routing-key rk-e6c7b501
traceparent 00-e9752743d6bab856ffbd87937cf193a8-91c8fdbdb31ae98b-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-kafka--aeda9352

Observed at the sink on the outbound Kafka record headers

traceparent 00-e9752743d6bab856ffbd87937cf193a8-d637cb35966d374f-00
tracestate 8478732@nr=0-0-8478732-572441051--cf6728aa07fe3592-0-0.258364-1794559523540,cptest=v1
test id
newrelic-python--rabbitmq-kafka--aeda9352
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-64cf5a6e,team=alpha
ot-baggage-routing-key rk-64cf5a6e
traceparent 00-1154309f0f4245e18d5fd578741f5ee7-ca217b6ed3b25dc3-01
tracestate cptest=v1
x-cp-canary newrelic-python--rabbitmq-rabbitmq--0dd23ae5

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

traceparent 00-1154309f0f4245e18d5fd578741f5ee7-5563ef9a70e90e16-00
tracestate 8478732@nr=0-0-8478732-572441051--a19c23308b37a7e6-0-0.141695-1794559524049,cptest=v1
test id
newrelic-python--rabbitmq-rabbitmq--0dd23ae5
raw statuses
baggage=absenttracestate=preservedtraceparent=same_traceot_baggage=absent

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