-
Notifications
You must be signed in to change notification settings - Fork 916
Log request ID and extended request ID with the requestId logger and … #2929
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
Conversation
f44dd0a
to
759be4e
Compare
@@ -94,6 +95,7 @@ public AwsXmlPredicatedResponseHandler( | |||
|
|||
AwsXmlUnmarshallingContext parsedResponse = parseResponse(httpResponse, executionAttributes); | |||
parsedResponse = decorateContextWithError.apply(parsedResponse); | |||
logRequestId(httpResponse); |
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.
Is this not handled by the combined response handler below?
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.
Yeah, it seems AwsXmlPredicatedResponseHandler is used by s3, and combined response handler is used by all other services. (I just learned it yesterday)
@@ -68,6 +69,8 @@ public CombinedResponseHandler(HttpResponseHandler<OutputT> successResponseHandl | |||
ExecutionAttributes executionAttributes) | |||
throws IOException, InterruptedException { | |||
|
|||
logRequestId(httpResponse); |
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.
Any specific reason to have picked this response handler to do the logging?
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.
This is where we log the response status code currently, so I just included the request ID here
Kudos, SonarCloud Quality Gate passed! |
…2012b8724 Pull request: release <- staging/b6832892-c2e4-4c09-a766-b572012b8724
…request logger
Motivation and Context
#2876
Description
Log request ID and extended request ID with the requestId logger and
Testing
Tested locally.
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsLicense