Skip to content
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

baggage.Members() returns members with hasData set to false #3164

Closed
lgfa29 opened this issue Sep 12, 2022 · 4 comments · Fixed by #3165
Closed

baggage.Members() returns members with hasData set to false #3164

lgfa29 opened this issue Sep 12, 2022 · 4 comments · Fixed by #3165
Labels
area:baggage Part of OpenTelemetry baggage bug Something isn't working help wanted Extra attention is needed
Projects

Comments

@lgfa29
Copy link
Contributor

lgfa29 commented Sep 12, 2022

Description

NOTE: I'm not sure if this is actually a bug or working as intended, so feel free to close it.

When calling baggage.Members() the slice of Member returned has all elements with hasData set to false. This prevents them from being set in other baggages since baggage.SetMember() will fail.

Environment

  • OS: macOS
  • Architecture: x86
  • Go Version: 1.19
  • opentelemetry-go version: 1.9.0

Steps To Reproduce

Sample playground: https://go.dev/play/p/tJa5-fMVCk1

Expected behavior

Members returned by baggage.Members() can be used in other baggages.

@lgfa29 lgfa29 added the bug Something isn't working label Sep 12, 2022
@MrAlias
Copy link
Contributor

MrAlias commented Sep 12, 2022

This looks like something we failed to include in #2522

@MrAlias MrAlias added this to the Release v1.11.0 milestone Sep 12, 2022
@MrAlias MrAlias added this to Needs triage in Bugs via automation Sep 12, 2022
@MrAlias MrAlias added help wanted Extra attention is needed area:baggage Part of OpenTelemetry baggage labels Sep 12, 2022
@MrAlias MrAlias moved this from Needs triage to High priority in Bugs Sep 12, 2022
@lgfa29
Copy link
Contributor Author

lgfa29 commented Sep 13, 2022

Thanks for the confirmation! I will try to get a PR with a fix soon 🙂

@MrAlias
Copy link
Contributor

MrAlias commented Sep 13, 2022

@lgfa29 it looks like @hanyuancheung has submitted #3165 to address this. Please take a look at that PR before starting work here.

@lgfa29
Copy link
Contributor Author

lgfa29 commented Sep 15, 2022

@lgfa29 it looks like @hanyuancheung has submitted #3165 to address this. Please take a look at that PR before starting work here.

Oh awesome! I got sidetracked so I didn't have time to open the PR. That looks like the changes I was thinking of doing, so looks like I don't have to anymore 🙂

Thanks for the heads-up!

Bugs automation moved this from High priority to Closed Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:baggage Part of OpenTelemetry baggage bug Something isn't working help wanted Extra attention is needed
Projects
Archived in project
Bugs
  
Closed
Development

Successfully merging a pull request may close this issue.

2 participants