Skip to content

Conversation

@carlosalberto
Copy link
Contributor

Fixes #4847

  • Fail fast, e.g. discard the ENTIRE env var value in the case of an error.
  • Values outside the baggage-octet (an ANSI subset) SHOULD be percent encoded, rather than MUST.

@carlosalberto carlosalberto requested review from a team as code owners January 27, 2026 16:03
Comment on lines 184 to 189
semi-colon delimited metadata is not supported, i.e.: `key1=value1,key2=value2`.
All attribute values MUST be considered strings and characters outside the
`baggage-octet` range MUST be percent-encoded.
`baggage-octet` range SHOULD be percent-encoded. In the case of errors during the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about

The OTEL_RESOURCE_ATTRIBUTES environment variable will contain a list of key value pairs, represented as key1=value1,key2=value2. All attribute values MUST be considered strings. The , and = characters in keys and values MUST be percent-encoded. Other characters MAY be percent-encoded.

@carlosalberto
Copy link
Contributor Author

@trask I applied your feedback along keeping the note regarding failing fast.

Also, now there's no mention at all to the Baggage standard. Hope this is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OTEL_RESOURCE_ATTRIBUTES is underspecified

4 participants