You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw #2498 around validating too often, but this ticket is asserting that we should not be validating the Member values at all in the Go data structure. The values should be encoded before transit, and decoded back into plaintext form when put back into the data structure. This is mentioned in #2519.
The otel spec has more vanilla language than the W3C spec about Member values. As I understand it, the values should be encoded for transit only.
Environment
OS: linux/mac
Architecture: x86_64
Go Version: 1.17
opentelemetry-go version: v1.2.0
Steps To Reproduce
Using the baggage module, create a new Member with a value that contains any characters that should be ignored according to the W3C spec
I'm not sure this issue is still accurate. NewMember will require valid/unencoded values. But I believe that's the proper behavior for that method.
Since #2529, Parse will however properly decode values.
Description
I saw #2498 around validating too often, but this ticket is asserting that we should not be validating the Member values at all in the Go data structure. The values should be encoded before transit, and decoded back into plaintext form when put back into the data structure. This is mentioned in #2519.
The otel spec has more vanilla language than the W3C spec about Member values. As I understand it, the values should be encoded for transit only.
Environment
Steps To Reproduce
Example:
Expected behavior
No validation is done when creating or manipulating member values in the Go structures, and proper encoding is done before the propagation of values.
The text was updated successfully, but these errors were encountered: