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

Update gRPC trailers metadata consumption by observation context #4612

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

ttddyy
Copy link
Contributor

@ttddyy ttddyy commented Jan 24, 2024

According to gRPC Javadoc, the passed metadata variable is not thread-safe.
Similar to the approach taken for handling headers metadata, this commit ensures that the trailers metadata is also copied for later consumption by GrpcServerObservationContext.

According to gRPC Javadoc, the metadata is not thread-safe.
Similar to the approach taken for handling headers metadata, this
commit ensures that the trailers metadata is also copied for later
consumption by `GrpcServerObservationContext`.

Signed-off-by: Tadaya Tsuyukubo <tadaya@ttddyy.net>
@marcingrzejszczak marcingrzejszczak added this to the 1.13.0-M1 milestone Jan 24, 2024
@marcingrzejszczak marcingrzejszczak added the type: task A general task label Jan 24, 2024
@marcingrzejszczak marcingrzejszczak merged commit 2124ccf into micrometer-metrics:main Jan 24, 2024
6 checks passed
@ttddyy ttddyy deleted the grpc-trailer-copy branch January 24, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants