Trait xray_lite_aws_sdk::ContextExt
source · pub trait ContextExt: Context + Clone + Debug + Send + Sync + 'static {
// Provided method
fn intercept_operation(
&self,
service: impl Into<String>,
operation: impl Into<String>
) -> impl Intercept + 'static { ... }
}
Expand description
Extension of [Context
].
This trait is automatically implemented for any [Context
] that satisfies
the bounds.
Provided Methods§
sourcefn intercept_operation(
&self,
service: impl Into<String>,
operation: impl Into<String>
) -> impl Intercept + 'static
fn intercept_operation( &self, service: impl Into<String>, operation: impl Into<String> ) -> impl Intercept + 'static
Creates an Intercept
for the AWS service request.
A returned Intercept
implements the following hooks:
read_before_attempt
: Starts a subsegment of the AWS service requestmodify_before_transmit
: Injects theX-Amzn-Trace-Id
header into the requestread_after_attempt
: Updates the subsegment with the request ID and the response status, and reports the subsegment to the X-Ray daemon
Object Safety§
This trait is not object safe.