Skip to content

Plus signs in OTEL_RESOURCE_ATTRIBUTES values are incorrectly decoded as spaces #8030

@trask

Description

@trask

Only noticed this via inspection, didn't run into this in the real world.

OTEL_RESOURCE_ATTRIBUTES=abc=x+y should result in resource attribute with key abc and value x+y.

But because the implementation is using URLDecoder#decode

URLDecoder.decode(entry.getValue(), StandardCharsets.UTF_8.displayName()));

+ is decoded as a space ( )

and this results in a resource attribute with key abc and value x y.

Metadata

Metadata

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions