-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add ability to periodically request debug headers #139
feat: add ability to periodically request debug headers #139
Conversation
26dfe1b
to
bf1edc4
Compare
/gcbrun |
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.
LGTM
@@ -152,6 +153,11 @@ export = (grpc: GrpcModule) => { | |||
: []; | |||
newCallOptions.interceptors = interceptors.concat([postProcessInterceptor]); | |||
|
|||
if (channelFactory.shouldRequestDebugHeaders(channelRef.getDebugHeadersRequestedAt())) { | |||
metadata.set('x-return-encrypted-headers', 'all_response'); |
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 thought we wanted to use 'true' here?
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 decided to include the afe headers as well
/gcbrun |
/gcbrun |
/gcbrun |
This feature is opt-in by setting debug_header_interval_secs in the ApiConfig:
-1
will requests debug headers for every RPCThe response headers can be examined in verbose grpc logs. The contents will be encrypted and will only be viewable by a google engineer