| Internet-Draft | MOQT Trace Context | November 2026 |
| Sharma | Expires 29 May 2027 | [Page] |
This document defines a Media over QUIC Transport (MOQT) extension that carries W3C Trace Context on SUBSCRIBE and FETCH requests. Subscribers, relays, and publishers can use it to correlate spans across MOQT sessions.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://sharmafb.github.io/draft-sharma-moq-trace-context/draft-sharma-moq-trace-context.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-sharma-moq-trace-context/.¶
Discussion of this document takes place on the Media Over QUIC Working Group mailing list (mailto:moq@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/moq/. Subscribe at https://www.ietf.org/mailman/listinfo/moq/.¶
Source for this draft and an issue tracker can be found at https://github.com/sharmafb/draft-sharma-moq-trace-context.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 29 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
A MOQT Request ID identifies a request within one session [MOQT]. A relay can issue another request on a separate session to serve it. W3C Trace Context [TRACE-CONTEXT] lets tracing tools connect those operations across sessions using two fields.¶
Traceparent carries a shared trace ID that ties related operations
together, such as a chain of SUBSCRIBE requests from a subscriber through
relays to a publisher. It also carries a parent ID that identifies the
specific operation that sent the request. Its flags include a hint about
whether the sender recorded trace data.¶
Tracestate carries optional vendor-specific tracing information, such as a tracing system's own identifiers, as an ordered list of key-value pairs.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This extension applies to moqt-23. An endpoint advertises support in SETUP
with the TRACE_CONTEXT_SUPPORT Setup Option (odd type TBD, zero-length value).
An endpoint MUST have sent and received this option on the session before
sending a TRACE_CONTEXT parameter.¶
The optional TRACE_CONTEXT Message Parameter (type TBD) can appear once in a SUBSCRIBE or FETCH. Its value uses the length-prefixed encoding in [MOQT].¶
TRACE_CONTEXT Value {
Length (vi64),
Traceparent Length (vi64),
Traceparent (..),
Tracestate (..),
}
¶
Length counts the bytes after itself. Traceparent Length counts the bytes of Traceparent. Tracestate occupies the remaining bytes and is omitted when none remain. Both fields use the ASCII header field values from [TRACE-CONTEXT].¶
Traceparent Length is 55 for version 00. The four fields appear in the
order below, use lowercase hexadecimal characters, and are separated by
hyphens.¶
Version (2 characters) identifies the format used by the other fields.¶
Trace ID (32 characters) identifies the trace shared by related operations. At least one digit is nonzero.¶
Parent ID (16 characters) identifies the operation that sent the request. At least one digit is nonzero.¶
Trace flags (2 characters) carry tracing information. In the example,
01 sets the sampled flag, which signals that the sender may have recorded
trace data. The flags follow [TRACE-CONTEXT-2], including its rule for
preserving the random trace ID flag when continuing a trace.¶
version-trace-id-parent-id-trace-flags 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01¶
Tracestate uses the combined field value from Section 3.3 of [TRACE-CONTEXT].
It is an ordered ASCII list of up to 32 comma-separated members. Each nonempty
member has the form key=value, and each key can appear once.¶
Key identifies the tracing system. A simple key is 1 to 256 characters.
A multi-tenant key has the form tenant@system, with 1 to 241 characters for
the tenant and 1 to 14 for the system. These identifiers use lowercase
letters, digits, _, -, *, or / and start with a lowercase letter.
A tenant identifier can also start with a digit.¶
Value carries opaque tracing data. It is 1 to 256 printable ASCII characters, excluding commas and equals signs, and ends in a non-space character.¶
Receivers accept empty members and ignore spaces and horizontal tabs around members. The following example contains two members.¶
rojo=00f067aa0ba902b7,studio@congo=t61rcWkgMzE¶
The receiver parses the context within the validated outer Length. It MUST ignore the context if Traceparent Length cannot be decoded, exceeds the remaining bytes, or yields an unusable Traceparent under the W3C rules. If only Tracestate is invalid, the receiver MUST ignore Tracestate and retain Traceparent. MOQT framing and parameter errors follow [MOQT].¶
A relay issuing a new upstream request SHOULD propagate usable context from one downstream request that triggered it, if the upstream session negotiated the extension and local policy permits it. A relay that participates in the trace keeps the trace ID and uses its outgoing span ID as the new parent ID, following the W3C mutation rules. A relay can also forward both fields unchanged.¶
A relay can trace a cache hit locally or link downstream requests to a shared upstream operation in its telemetry. Trace context MUST NOT affect which upstream requests the relay issues, request aggregation, or cache identity.¶
Trace context is untrusted metadata and MUST NOT affect authorization. Endpoints apply local sampling limits and MAY omit context or restart a trace at a trust boundary. A restart discards inherited Tracestate. Trace parameters MUST NOT contain personal or sensitive data or be copied into shared Track or Object Properties.¶
IANA is requested to register TRACE_CONTEXT_SUPPORT (odd type TBD) in the "MOQT Setup Options" registry and TRACE_CONTEXT (type TBD) in the "MOQT Message Parameters" registry, referencing Section 2 and Section 3, respectively.¶