-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix baggage.NewMember to decode the accepted value #3226
Fix baggage.NewMember to decode the accepted value #3226
Conversation
`value` is decoded and stored after validating the input parameters. Corresponding test cases are modified so that we can make sure `value` is properly encoded before creating Member.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3226 +/- ##
=====================================
Coverage 77.8% 77.8%
=====================================
Files 164 164
Lines 11264 11269 +5
=====================================
+ Hits 8767 8772 +5
Misses 2299 2299
Partials 198 198
|
@MrAlias can you please help approve to run the ci check pipeline? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the parse of new baggage work properly? Or does it also need to be included here?
@MrAlias thx for the comments. |
open-telemetry/opentelemetry-go#3226 fixed the behavior of baggage.NewMember to be W3C compliant, which now decodes the value
… to 1.11.1 (#84) * Bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.9.0 to 1.11.1. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](open-telemetry/opentelemetry-go@v1.9.0...v1.11.1) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix baggage test open-telemetry/opentelemetry-go#3226 fixed the behavior of baggage.NewMember to be W3C compliant, which now decodes the value * drop go 1.17 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vera Reynolds <verareynolds@honeycomb.io>
fix #3144
fix #2523
Function
baggage.NewMember(key, value, props...)
inputvalue
is decoded and stored after validating the input parameters according to the W3C specification of baggage value.Corresponding test cases are modified so that we can make sure
value
is properly encoded before creatingbaggage.Member
.