Skip to content

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

Closed
@lgfa29

Description

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.

Metadata

Assignees

No one assigned

    Labels

    area:baggagePart of OpenTelemetry baggagebugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    • Status

      Closed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions