From 04436b6fa0b63832416be91dbbf05836d697569c Mon Sep 17 00:00:00 2001 From: Sam Xie Date: Thu, 11 Jul 2024 15:28:57 -0700 Subject: [PATCH 1/2] Clarify no empty string allowed in baggage names --- specification/baggage/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/baggage/api.md b/specification/baggage/api.md index 928ba2609c8..a0193d588d5 100644 --- a/specification/baggage/api.md +++ b/specification/baggage/api.md @@ -35,7 +35,7 @@ with _exactly one value_. This is more restrictive than the [W3C Baggage Specification, § 3.2.1.1](https://www.w3.org/TR/baggage/#baggage-string) which allows duplicate entries for a given name. -Baggage **names** are any valid UTF-8 strings. Language API SHOULD NOT +Baggage **names** are any valid UTF-8 strings and cannot be empty. Language API SHOULD NOT restrict which strings are used as baggage **names**. However, the specific `Propagator`s that are used to transmit baggage entries across component boundaries may impose their own restrictions on baggage names. From 05b9f20a0178100e258f5ea4f8ea59baedd58b2c Mon Sep 17 00:00:00 2001 From: Sam Xie Date: Thu, 11 Jul 2024 15:49:55 -0700 Subject: [PATCH 2/2] Update specification/baggage/api.md Co-authored-by: Yuri Shkuro --- specification/baggage/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/baggage/api.md b/specification/baggage/api.md index a0193d588d5..fef72cd153c 100644 --- a/specification/baggage/api.md +++ b/specification/baggage/api.md @@ -35,7 +35,7 @@ with _exactly one value_. This is more restrictive than the [W3C Baggage Specification, § 3.2.1.1](https://www.w3.org/TR/baggage/#baggage-string) which allows duplicate entries for a given name. -Baggage **names** are any valid UTF-8 strings and cannot be empty. Language API SHOULD NOT +Baggage **names** are any valid, non-empty UTF-8 strings. Language API SHOULD NOT restrict which strings are used as baggage **names**. However, the specific `Propagator`s that are used to transmit baggage entries across component boundaries may impose their own restrictions on baggage names.