Skip to content

Commit 84bcf0e

Browse files
committed
Add x-amz-request-id (for the S3 side of things) and add comments.
1 parent c00a633 commit 84bcf0e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cargo/util/errors.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ pub type CargoResult<T> = anyhow::Result<T>;
1212
/// These are headers that are included in error messages to help with
1313
/// diagnosing issues.
1414
pub const DEBUG_HEADERS: &[&str] = &[
15+
// This is the unique ID that identifies the request in CloudFront which
16+
// can be used for looking at the AWS logs.
1517
"x-amz-cf-id",
18+
// This is the CloudFront POP (Point of Presence) that identifies the
19+
// region where the request was routed. This can help identify if an issue
20+
// is region-specific.
1621
"x-amz-cf-pop",
22+
// The unique token used for troubleshooting S3 requests via AWS logs or support.
23+
"x-amz-request-id",
24+
// Another token used in conjunction with x-amz-request-id.
1725
"x-amz-id-2",
26+
// Whether or not there was a cache hit or miss (both CloudFront and Fastly).
1827
"x-cache",
28+
// The cache server that processed the request (Fastly).
1929
"x-served-by",
2030
];
2131

0 commit comments

Comments
 (0)