Media Over QUIC A. Sharma Internet-Draft Meta Intended status: Standards Track 25 November 2026 Expires: 29 May 2027 Trace Context Propagation for Media over QUIC Transport draft-sharma-moq-trace-context-00 Abstract 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. About This Document 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. Status of This Memo 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." Sharma Expires 29 May 2027 [Page 1] Internet-Draft MOQT Trace Context November 2026 This Internet-Draft will expire on 29 May 2027. Copyright Notice 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Negotiation . . . . . . . . . . . . . . . . . . . . . . . . . 3 3. TRACE_CONTEXT Parameter . . . . . . . . . . . . . . . . . . . 3 3.1. Traceparent Format . . . . . . . . . . . . . . . . . . . 3 3.2. Tracestate Format . . . . . . . . . . . . . . . . . . . . 4 3.3. Validation . . . . . . . . . . . . . . . . . . . . . . . 4 4. Relay Processing . . . . . . . . . . . . . . . . . . . . . . 5 5. Shared Subscription Example . . . . . . . . . . . . . . . . . 5 6. Security Considerations . . . . . . . . . . . . . . . . . . . 5 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 6 8. Normative References . . . . . . . . . . . . . . . . . . . . 6 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 6 1. Introduction 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. Sharma Expires 29 May 2027 [Page 2] Internet-Draft MOQT Trace Context November 2026 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. 2. Negotiation 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. 3. 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]. 3.1. Traceparent Format 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. Sharma Expires 29 May 2027 [Page 3] Internet-Draft MOQT Trace Context November 2026 * *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 3.2. Tracestate Format 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 3.3. Validation 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]. Sharma Expires 29 May 2027 [Page 4] Internet-Draft MOQT Trace Context November 2026 4. Relay Processing 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. 5. Shared Subscription Example Two clients subscribe to the same Track through relay_1. Each starts its own trace, and all three sessions have negotiated the extension. The arrows are numbered in order and labeled with (trace ID, parent ID). (1) SUBSCRIBE (2) SUBSCRIBE (A, C1) (A, R1) client_1 ----------------> relay_1 ----------------> publisher ^ | client_2 ---------------------+ (3) SUBSCRIBE (B, C2) The relay continues Trace A on its upstream SUBSCRIBE with its own outgoing span ID, R1. When client_2 subscribes, the relay reuses that upstream subscription and can link Trace B to it in local telemetry. Each SUBSCRIBE carries its context once, even if the subscription delivers many Objects. 6. Security Considerations 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. Sharma Expires 29 May 2027 [Page 5] Internet-Draft MOQT Trace Context November 2026 7. IANA Considerations 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. 8. Normative References [MOQT] Nandakumar, S., Vasiliev, V., Swett, I., and A. Frindell, "Media over QUIC Transport", Work in Progress, Internet- Draft, draft-ietf-moq-transport-23, 2 November 2026, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [TRACE-CONTEXT] W3C, "Trace Context", 23 November 2021, . [TRACE-CONTEXT-2] W3C, "Trace Context Level 2", 28 March 2024, . Author's Address Aman Sharma Meta Email: amsharma@meta.com Sharma Expires 29 May 2027 [Page 6]