Skip to content

fix grpc set metadata multi-value#11308

Merged
trask merged 6 commits into
open-telemetry:mainfrom
wgy035:grpc-fix-metadata
Jun 4, 2024
Merged

fix grpc set metadata multi-value#11308
trask merged 6 commits into
open-telemetry:mainfrom
wgy035:grpc-fix-metadata

Conversation

@wgy035

@wgy035 wgy035 commented May 8, 2024

Copy link
Copy Markdown
Contributor

Resolves #11237
removeAll key before put in grpc MetadataSetter

@wgy035 wgy035 requested a review from a team May 8, 2024 13:00
@linux-foundation-easycla

linux-foundation-easycla Bot commented May 8, 2024

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

@steverao

steverao commented May 9, 2024

Copy link
Copy Markdown
Contributor

@wgy035 Please sign the CLA.

@trask

trask commented May 9, 2024

Copy link
Copy Markdown
Member

@wgy035 can you add a test for this? (check out #2727 for possible inspiration)

@wgy035

wgy035 commented May 21, 2024

Copy link
Copy Markdown
Contributor Author

Got it. And now I'm trying to add a test.

@laurit

laurit commented May 29, 2024

Copy link
Copy Markdown
Contributor

@wgy035 I have crated a PR for your PR wgy035#1 that changes the test so that it uses a standard propagator and verifies that injecting the tracing context twice results in the last inject overwriting the first one.

Improve grpc metadata overwrite test
@trask trask merged commit a47c406 into open-telemetry:main Jun 4, 2024
@wgy035 wgy035 deleted the grpc-fix-metadata branch June 5, 2024 02:17
zeitlinger pushed a commit to zeitlinger/opentelemetry-java-instrumentation that referenced this pull request Jun 12, 2024
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
github-actions Bot pushed a commit that referenced this pull request Jun 17, 2024
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In io.opentelemetry.instrumentation.grpc.v1_6 the Setter duplicates instead of replacing

4 participants