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

How to get grpc-status in Layer? #1824

Open
njskalski opened this issue Jul 26, 2024 · 1 comment
Open

How to get grpc-status in Layer? #1824

njskalski opened this issue Jul 26, 2024 · 1 comment

Comments

@njskalski
Copy link

Hi,

I implemented a Layer similar to this one https://docs.rs/tonic-tracing-opentelemetry/0.19.0/src/tonic_tracing_opentelemetry/middleware/server.rs.html , and I want to access "grpc-status" field that is not among the headers, it seems to be added later from "trailers".

Is there a way to either read it earlier OR trigger an action when it's available?

@DoumanAsh
Copy link
Contributor

You should be able to access in response only so you need to wrap service's response with your own future

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

No branches or pull requests

2 participants