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

improve http client traces for CURL and add traces for WinHTTP client. #1544

Closed
Eliyahu-Machluf opened this issue Dec 21, 2020 · 4 comments
Closed
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.

Comments

@Eliyahu-Machluf
Copy link

I'm about to commit a PR which improve http client traces for CURL client, and add http client traces for WinHTTP client. I saw you requested to first open a feature request for that, so here it is:

The following is needed relating to http client traces:

  1. Enable http client traces to be configured as per client configuration and not as per compilation of the library (currently only if ENABLE_CURL_LOGGING is defined when building the library).

  2. For curl traces, do not print the data transferred, as it may contain user private data. Current code (before the suggested code change) prints CURLINFO_DATA_[IN|OUT] information, which contains for example content of files uploaded or downloaded to S3. This is not acceptable by our customers as it harms their privacy, and the suggested code change prints the size of the data only and not the content of the data.

  3. Print the http client traces at the most verbose mode, which is 'trace', instead of 'debug' mode.

  4. For curl trace, when printing size, add a space between the size and the 'bytes' suffix (for example '1024 bytes' instead of '1024bytes' )

  5. Add also WinHTTP traces for Windows build (with the same http client trace flag).

  6. When WinHTTP request failed, print also the WinHTTP error code to debug trace. This can help with troubleshooting of network issues on Windows.

@Eliyahu-Machluf Eliyahu-Machluf added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 21, 2020
@Eliyahu-Machluf
Copy link
Author

The suggested changes for this feature requested are at PR #1545

@KaibaLopez
Copy link
Contributor

Hi @Eliyahu-Machluf ,
Thanks for the contribution!

@KaibaLopez KaibaLopez removed the needs-triage This issue or PR still needs to be triaged. label Dec 21, 2020
@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p2 This is a standard priority issue labels Mar 8, 2023
@jmklix
Copy link
Member

jmklix commented May 3, 2024

Merged: #2676

@jmklix jmklix closed this as completed May 3, 2024
Copy link

github-actions bot commented May 3, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.
Projects
None yet
Development

No branches or pull requests

3 participants