-
- Downloads
Refactor interceptor phases to improve optionality inside interceptors (#2670)
## Motivation and Context This PR: - Deletes `TraceProbe` - Replaces the orchestrator's `Phase` helper with a couple of macros - Introduces the concept of phases into `InterceptorContext` so that input/output/error/request/response accessors don't need option wrappers - Adds `TypeErasedError` so that `orchestrator::Error` can implement `Error` - Rewinds the interceptor context in the retry loop ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- aws/rust-runtime/aws-runtime/src/invocation_id.rs 13 additions, 10 deletionsaws/rust-runtime/aws-runtime/src/invocation_id.rs
- aws/rust-runtime/aws-runtime/src/recursion_detection.rs 8 additions, 4 deletionsaws/rust-runtime/aws-runtime/src/recursion_detection.rs
- aws/rust-runtime/aws-runtime/src/user_agent.rs 19 additions, 13 deletionsaws/rust-runtime/aws-runtime/src/user_agent.rs
- aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/RetryClassifierDecorator.kt 1 addition, 1 deletion...oftware/amazon/smithy/rustsdk/RetryClassifierDecorator.kt
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/endpoint/generators/EndpointParamsInterceptorGenerator.kt 3 additions, 3 deletions...endpoint/generators/EndpointParamsInterceptorGenerator.kt
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/ServiceRuntimePluginGenerator.kt 0 additions, 13 deletions...client/smithy/generators/ServiceRuntimePluginGenerator.kt
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/client/FluentClientGenerator.kt 1 addition, 1 deletion.../client/smithy/generators/client/FluentClientGenerator.kt
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ResponseDeserializerGenerator.kt 2 additions, 2 deletions...ithy/generators/protocol/ResponseDeserializerGenerator.kt
- rust-runtime/aws-smithy-runtime-api/src/client/interceptors.rs 82 additions, 32 deletions...runtime/aws-smithy-runtime-api/src/client/interceptors.rs
- rust-runtime/aws-smithy-runtime-api/src/client/interceptors/context.rs 717 additions, 73 deletions...aws-smithy-runtime-api/src/client/interceptors/context.rs
- rust-runtime/aws-smithy-runtime-api/src/client/orchestrator.rs 3 additions, 20 deletions...runtime/aws-smithy-runtime-api/src/client/orchestrator.rs
- rust-runtime/aws-smithy-runtime-api/src/client/retries.rs 2 additions, 1 deletionrust-runtime/aws-smithy-runtime-api/src/client/retries.rs
- rust-runtime/aws-smithy-runtime-api/src/type_erasure.rs 102 additions, 21 deletionsrust-runtime/aws-smithy-runtime-api/src/type_erasure.rs
- rust-runtime/aws-smithy-runtime/src/client/orchestrator.rs 119 additions, 98 deletionsrust-runtime/aws-smithy-runtime/src/client/orchestrator.rs
- rust-runtime/aws-smithy-runtime/src/client/orchestrator/auth.rs 31 additions, 35 deletions...untime/aws-smithy-runtime/src/client/orchestrator/auth.rs
- rust-runtime/aws-smithy-runtime/src/client/orchestrator/endpoints.rs 3 additions, 2 deletions...e/aws-smithy-runtime/src/client/orchestrator/endpoints.rs
- rust-runtime/aws-smithy-runtime/src/client/orchestrator/phase.rs 0 additions, 114 deletions...ntime/aws-smithy-runtime/src/client/orchestrator/phase.rs
- rust-runtime/aws-smithy-runtime/src/client/retries/strategy/never.rs 2 additions, 1 deletion...e/aws-smithy-runtime/src/client/retries/strategy/never.rs
Loading
Please register or sign in to comment