Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ release.

### Resource

- Refine the handling of OTEL_RESOURCE_ATTRIBUTES.
([#4856](https://github.com/open-telemetry/opentelemetry-specification/pull/4856))

### Entities

### OpenTelemetry Protocol
Expand Down
5 changes: 4 additions & 1 deletion specification/resource/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ key value pairs, and these are expected to be represented in a format matching
to the [W3C Baggage](https://www.w3.org/TR/baggage/#header-content), except that additional
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.

decoding process, the entire environment variable value SHOULD be discarded
and an error SHOULD be reported following the
[Error Handling principles](../error-handling.md#basic-error-handling-principles).

## Resource operations

Expand Down
Loading