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

feat(HttpClient): Provide tracing handler to allow removal of query string in traces #264

Merged

Conversation

AnuragMohapatra
Copy link
Contributor

This PR resolves #201

Issue #, if available:

Description of changes:

Added a new Tracing handler that will configure the httpmessagehandler in a way that when it adds traces to XRay recorder it will strip the query parameters around it and on trace the path.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AnuragMohapatra AnuragMohapatra requested a review from a team as a code owner July 29, 2022 07:01
@srprash srprash self-requested a review August 8, 2022 19:59
@srprash
Copy link
Collaborator

srprash commented Aug 13, 2022

Thanks @AnuragMohapatra for contributing the future. It would have been ideal if we could have made the query sanitization the default behavior, but I believe that could be a backwards incompatible for some customers. So this looks good to me. :)

@srprash srprash merged commit 34b291e into aws:master Aug 13, 2022
@AnuragMohapatra
Copy link
Contributor Author

Thanks @srprash One more reason for the separate instance is to give the ability to have different httpmessagehandler on different named client which may(I have not test) allow the user to have a peek on some query strings if required for troubleshooting or debugging. That was my thought process.

@AnuragMohapatra AnuragMohapatra deleted the sanitzation-option-for-http-tracing branch August 15, 2022 03:07
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.

Sensitive query string
2 participants