-
Notifications
You must be signed in to change notification settings - Fork 5
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
Debug Sentry Transactions #970
Conversation
} | ||
|
||
func StreamType(info *grpc.StreamServerInfo) string { | ||
if !info.IsClientStream && !info.IsServerStream { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is only called in StreamLogging
, which only accepts grpc.ServerStreams
, do we really need to check here for unary RPC's?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do - if we don't handle all cases of the different combination of bools then the default will be "bidirectional" and that's not the case when they're both false.
@pdamodaran @DanielSollis I've made the changes you've requested and I believe I've fixed the tests as well. |
Scope of changes
Updates the use of our interceptors for better Sentry handling.
Fixes SC-12088
Type of change
Acceptance criteria
This is mostly a refactoring of our interceptors so that we chain them together more like standard middleware. However, we want to ensure that no part of our previous middlewares is missed and that the behavior of this new middleware should be the same as the old.
Author checklist
Reviewer(s) checklist