-
Notifications
You must be signed in to change notification settings - Fork 163
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/trace logging that includes the HTTP request headers #878
Comments
Hey Jonathon, do you have logs that contain the headers struct? Something like... If you did have those and you're building from source, I used this patch before which may be useful.
I don't think there's any reason not to merge that in, so I can chat with the team - I just want to ensure there's no risk of leaking anything we don't want to put in logs. The other half of this would be making sure that we actually log the struct where its useful, such as when constructing requests. |
This may be quite a bit more challenging than it sounds - in the case you shared (PutObject), this is usually mapped to a multi-part upload with many parts which we don't directly control - the AWS CRT handles this (to optimize upload performance). |
I was digging into this a bit more. Unfortunately, we don't log the request headers struct already - in fact, we don't see the final request headers struct, so improving the formatting of the struct won't help in this case. I was hoping the request signing logs may include them, but it only includes the headers that will be signed themselves. To resolve this, we'd need to make CRT changes. One possible approach could be to update the telemetry callbacks we have with the CRT which currently surfaces metrics and response headers, and include request headers there. We would then be free to format them should we wish to. |
Tell us more about this new feature.
I've encountered a HTTP 501 Not Implemented error using Cloudflare R2 with
mount-s3
.Cloudflare has docs on
CreateMultipartUpload
showing what features it does and does not implement: https://developers.cloudflare.com/r2/api/s3/api/#unimplemented-object-level-operations.I'm looking for a way to find which of those unimplemented features is being used by
mount-s3
, causing the HTTP 501.I've enabled both
--debug
and--debug-crt
but that doesn't provide enough request detail.The text was updated successfully, but these errors were encountered: