-
Notifications
You must be signed in to change notification settings - Fork 100
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
Generate constants for full method names #471
Comments
I'd like to make sure this is necessary before we potentially pollute the generated code. |
Ack. This comes up pretty often (#326, #383, Slack, in person with https://github.com/cuebox) - the most common use case is exempting some RPCs from logging or auth middleware without hard-coding a string literal. The best available workaround is not very good, so IMO this is worthwhile. |
Ok |
Is your feature request related to a problem? Please describe.
It would be convenient in some cases to have access to the full method name for each method. Previous attempts to add this data required separate plugins: bufbuild/plugins#264
Describe the solution you'd like
Add the full method name as a constant in the generated .go code.
Describe alternatives you've considered
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: