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

Will tonic ever support message reflection/introspection? #2156

Open
alexeysofin opened this issue Jan 22, 2025 · 5 comments
Open

Will tonic ever support message reflection/introspection? #2156

alexeysofin opened this issue Jan 22, 2025 · 5 comments

Comments

@alexeysofin
Copy link

Feature Request

Seems message introspection is a widely-used feature in c++/go grpc servers. Do you have plans to introduce message reflection to tonic?

Alternatives

https://github.com/andrewhickman/prost-reflect does allow message reflection, but it seems incompatible with tonic.

@alexeysofin alexeysofin changed the title Will tonic ever support message introspection? Will tonic ever support message reflection/introspection? Jan 22, 2025
@alexeysofin
Copy link
Author

UPD, prost-reflect is compatible with tonic, may close the issue

@acrrd
Copy link

acrrd commented Feb 7, 2025

You can use tonic-reflection, it is developed in this repository alongside tonic.

@aliaksei-imi
Copy link

Afaiu it's meant for only a special purpose of supporting client reflection API, but I need message introspection on server, being able to dynamically inspect incoming fields/values

@acrrd
Copy link

acrrd commented Feb 7, 2025

I used it for the client reflection, if you need it on the server side I don't know if it can help

@aliaksei-imi
Copy link

Yeah, the only option is prost-reflect

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

3 participants