Skip to content

Conversation

@shakuzen
Copy link
Member

@shakuzen shakuzen commented May 28, 2025

It's known that some metadata can be repeated on a carrier. W3C baggage is one example of this in HTTP request headers. The current get API returns a String, and for performance reasons we may not want to check all headers to combine repeated headers when we don't expect there should be repeated headers.

See micrometer-metrics/tracing#1032

@shakuzen shakuzen added this to the 1.16.0-M1 milestone May 28, 2025
@shakuzen shakuzen force-pushed the get-all-the-things branch 2 times, most recently from b67c73d to 64cf633 Compare May 28, 2025 08:54
@shakuzen shakuzen force-pushed the get-all-the-things branch 2 times, most recently from 6ab417f to babdbc5 Compare July 11, 2025 06:01
@shakuzen shakuzen marked this pull request as ready for review July 11, 2025 06:01
@shakuzen shakuzen changed the title [WIP] Add getAll to Getter for repeated metadata Add getAll to Getter for repeated metadata Jul 11, 2025
It's known that some metadata can be repeated on a carrier. W3C baggage is one example of this in HTTP request headers. The current get API returns a String, and for performance reasons we may not want to check all headers to combine repeated headers when we don't expect there should be repeated headers.

This updates the one non-deprecated main code implementation of Getter (in ObservationGrpcServerInterceptor) to implement the new getAll method.
@shakuzen shakuzen force-pushed the get-all-the-things branch from babdbc5 to 7ca0c2b Compare July 11, 2025 06:03
@shakuzen shakuzen enabled auto-merge (squash) July 11, 2025 06:04
@shakuzen shakuzen merged commit c17908a into micrometer-metrics:main Jul 11, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant