Description of changes:
Today the response_status / error_response_body of the last failed request are only reported in finish_callback for AWS_ERROR_S3_INVALID_RESPONSE_STATUS error code . In order to have access to that information in case of, e.g. AWS_ERROR_S3_SLOW_DOWN, we need to do this change.
The alternatives - telemetry_callback and body_callback - are not that usable to achieve that. Specifically to record the body of the last failed S3 request of the meta-request. Is body_callback even invoked in case of a failure?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: No
Description of changes: Today the
response_status
/error_response_body
of the last failed request are only reported infinish_callback
forAWS_ERROR_S3_INVALID_RESPONSE_STATUS
error code . In order to have access to that information in case of, e.g.AWS_ERROR_S3_SLOW_DOWN
, we need to do this change.The alternatives -
telemetry_callback
andbody_callback
- are not that usable to achieve that. Specifically to record the body of the last failed S3 request of the meta-request. Isbody_callback
even invoked in case of a failure?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.