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

fix: better diagnosed gRPC status code in monitor middleware #66

Merged
merged 1 commit into from
Dec 3, 2023
Merged

fix: better diagnosed gRPC status code in monitor middleware #66

merged 1 commit into from
Dec 3, 2023

Conversation

jlourenc
Copy link
Contributor

@jlourenc jlourenc commented Dec 1, 2023

This change aligns status code retrieval from error with what the gRPC server logic does:

  1. status.FromError
  2. status.FromContextError

https://github.com/grpc/grpc-go/blob/master/server.go#L1369-L1377

This change aligns status code retrieval from error with what the gRPC
server logic does:
1. status.FromError
2. status.FromContextError

https://github.com/grpc/grpc-go/blob/master/server.go#L1369-L1377
@jlourenc
Copy link
Contributor Author

jlourenc commented Dec 1, 2023

Hey @talgendler 👋🏼 , I'd appreciate a review on this. Let me know if you have any questions. Thanks!

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3baaae4) 68.02% compared to head (5aba438) 77.58%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   68.02%   77.58%   +9.56%     
==========================================
  Files          50       40      -10     
  Lines        1379     1227     -152     
==========================================
+ Hits          938      952      +14     
+ Misses        400      238     -162     
+ Partials       41       37       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@talgendler talgendler merged commit 02dc3a8 into go-masonry:master Dec 3, 2023
1 check passed
@jlourenc jlourenc deleted the fix/enhance-grpc-status-code-metric-tag branch December 3, 2023 13:46
@jlourenc
Copy link
Contributor Author

jlourenc commented Dec 3, 2023

Hi @talgendler , thank you for the prompt action. Much appreciated.
Would you be able to create a new tag for that commit as well 🙇🏼 ?
Thanks!

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

Successfully merging this pull request may close these issues.

3 participants