Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 9 additions & 5 deletions specification/resource/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,15 @@ information provided by the user, i.e. the user provided resource information
has higher priority.

The `OTEL_RESOURCE_ATTRIBUTES` environment variable will contain of a list of
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.
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](https://datatracker.ietf.org/doc/html/rfc3986#section-2.1),
e.g. values outside the ANSI characters set.

In case of any error, e.g. failure during the 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