Incompatibility between the W3C Baggage spec version used in the Resource spec and the Baggage spec #2639
Labels
[label deprecated] triaged-accepted
[label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR
spec:resource
Related to the specification/resource directory
What are you trying to achieve?
When defining the value for the
OTEL_RESOURCE_ATTRIBUTES
environment variable, the resource specification links to the versionfdc7a5c4f4a31ba2a36717541055e551c2b032e4
of the W3C Baggage format, while the OpenTelemetry Baggage specification doesn't specify any particular version.This causes an incompatibly in how baggage values are handled between the two specifications because the latest W3C Baggage spec defines that:
But the version used by the Resource spec doesn't have this requirement.
The effect of this difference is that, when using a library that follows the OpenTelemetry Baggage spec (such as
go.opentelemetry.io/otel/baggage
) to generate the value for theOTEL_RESOURCE_ATTRIBUTES
environment variable, the baggage values will be encoded by the library but not decoded by the SDK.Additional context.
@MrAlias noticed this difference in open-telemetry/opentelemetry-go#2963.
The text was updated successfully, but these errors were encountered: