Class TraceIdExecutionInterceptor
java.lang.Object
software.amazon.awssdk.awscore.interceptor.TraceIdExecutionInterceptor
- All Implemented Interfaces:
ExecutionInterceptor
@SdkProtectedApi
public class TraceIdExecutionInterceptor
extends Object
implements ExecutionInterceptor
The
TraceIdExecutionInterceptor copies the trace details to the TRACE_ID_HEADER header, assuming we seem to
be running in a lambda environment.`-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterExecution(Context.AfterExecution context, ExecutionAttributes executionAttributes) voidbeforeExecution(Context.BeforeExecution context, ExecutionAttributes executionAttributes) modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) voidonExecutionFailure(Context.FailedExecution context, ExecutionAttributes executionAttributes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor
afterMarshalling, afterTransmission, afterUnmarshalling, beforeMarshalling, beforeTransmission, beforeUnmarshalling, modifyAsyncHttpContent, modifyAsyncHttpResponseContent, modifyException, modifyHttpContent, modifyHttpResponse, modifyHttpResponseContent, modifyRequest, modifyResponse
-
Constructor Details
-
TraceIdExecutionInterceptor
public TraceIdExecutionInterceptor()
-
-
Method Details
-
beforeExecution
public void beforeExecution(Context.BeforeExecution context, ExecutionAttributes executionAttributes) - Specified by:
beforeExecutionin interfaceExecutionInterceptor
-
modifyHttpRequest
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) - Specified by:
modifyHttpRequestin interfaceExecutionInterceptor
-
afterExecution
- Specified by:
afterExecutionin interfaceExecutionInterceptor
-
onExecutionFailure
public void onExecutionFailure(Context.FailedExecution context, ExecutionAttributes executionAttributes) - Specified by:
onExecutionFailurein interfaceExecutionInterceptor
-