@@ -262,7 +262,7 @@ typedef void(aws_s3_client_shutdown_complete_callback_fn)(void *user_data);
262262 * https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html#API_PutObject_RequestSyntax
263263 * If an error occurs, call aws_raise_error(E) with a proper error code and return NULL.
264264 */
265- typedef struct aws_string * (aws_s3_meta_request_full_object_checksum_fn )(struct aws_s3_meta_request * meta_request ,
265+ typedef struct aws_string * (aws_s3_meta_request_full_object_checksum_fn )(struct aws_s3_meta_request * meta_request ,
266266 void * user_data );
267267
268268enum aws_s3_meta_request_tls_mode {
@@ -429,7 +429,7 @@ typedef int(aws_s3_meta_request_upload_review_fn)(
429429 * @return The aws_s3express_credentials_provider.
430430 */
431431typedef struct aws_s3express_credentials_provider * (
432- aws_s3express_provider_factory_fn )(struct aws_allocator * allocator ,
432+ aws_s3express_provider_factory_fn )(struct aws_allocator * allocator ,
433433 struct aws_s3_client * client ,
434434 aws_simple_completion_callback on_provider_shutdown_callback ,
435435 void * shutdown_user_data ,
@@ -1390,6 +1390,17 @@ int aws_s3_request_metrics_get_request_attempt_id(
13901390 const struct aws_s3_request_metrics * metrics ,
13911391 const struct aws_string * * out_request_attempt_id );
13921392
1393+ /**
1394+ * Get the extended request ID from aws_s3_request_metrics.
1395+ * If unavailable, AWS_ERROR_S3_METRIC_DATA_NOT_AVAILABLE will be raised.
1396+ * If available, out_amz_id_2 will be set to a string. Be warned this string's lifetime is tied to the metrics
1397+ * object.
1398+ **/
1399+ AWS_S3_API
1400+ int aws_s3_request_metrics_get_amz_id_2 (
1401+ const struct aws_s3_request_metrics * metrics ,
1402+ const struct aws_string * * out_amz_id_2 );
1403+
13931404/* Get the start time from aws_s3_request_metrics, which is when S3 client prepare the request to be sent. Always
13941405 * available. Timestamp are from `aws_high_res_clock_get_ticks` */
13951406AWS_S3_API
0 commit comments