You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, my plea: can Metadata be included in the SharedPropertyBag of a Request? Or, alternatively, can the service and operation name be otherwise added to the property bag or Request through some other mechanism so that this use-case becomes possible?
The text was updated successfully, but these errors were encountered:
I'm currently writing a Smithy middleware that allows applying per-operation timeouts. That is, when constructed, the user can supply something like:
and the middleware ensures that the right timeout is applied for each request.
Unfortunately, at the moment, doing so isn't possible (as far as I can tell) because middleware only receive a
aws_smithy_http::operation::Request
consisting of ahttp::Request<SdkBody>
and aSharedPropertyBag
, neither of which include the service/operation metadata, which is discarded here:https://github.com/awslabs/smithy-rs/blob/c5c87be5e684704bf8fdb31e62e5e5c1b37531a8/rust-runtime/aws-smithy-http-tower/src/parse_response.rs#L103-L107
So, my plea: can
Metadata
be included in theSharedPropertyBag
of aRequest
? Or, alternatively, can the service and operation name be otherwise added to the property bag orRequest
through some other mechanism so that this use-case becomes possible?The text was updated successfully, but these errors were encountered: