Class TracingExecutionInterceptor
- java.lang.Object
-
- io.opentelemetry.instrumentation.awssdk.v2_2.autoconfigure.TracingExecutionInterceptor
-
- All Implemented Interfaces:
software.amazon.awssdk.core.interceptor.ExecutionInterceptor
public class TracingExecutionInterceptor extends Object implements software.amazon.awssdk.core.interceptor.ExecutionInterceptor
AExecutionInterceptorfor use as an SPI by the AWS SDK to automatically trace all requests.
-
-
Constructor Summary
Constructors Constructor Description TracingExecutionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterExecution(software.amazon.awssdk.core.interceptor.Context.AfterExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidafterMarshalling(software.amazon.awssdk.core.interceptor.Context.AfterMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidafterTransmission(software.amazon.awssdk.core.interceptor.Context.AfterTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidafterUnmarshalling(software.amazon.awssdk.core.interceptor.Context.AfterUnmarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidbeforeExecution(software.amazon.awssdk.core.interceptor.Context.BeforeExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidbeforeMarshalling(software.amazon.awssdk.core.interceptor.Context.BeforeMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidbeforeTransmission(software.amazon.awssdk.core.interceptor.Context.BeforeTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidbeforeUnmarshalling(software.amazon.awssdk.core.interceptor.Context.BeforeUnmarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)Optional<software.amazon.awssdk.core.async.AsyncRequestBody>modifyAsyncHttpContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)Optional<org.reactivestreams.Publisher<ByteBuffer>>modifyAsyncHttpResponseContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)ThrowablemodifyException(software.amazon.awssdk.core.interceptor.Context.FailedExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)Optional<software.amazon.awssdk.core.sync.RequestBody>modifyHttpContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)software.amazon.awssdk.http.SdkHttpRequestmodifyHttpRequest(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)software.amazon.awssdk.http.SdkHttpResponsemodifyHttpResponse(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)Optional<InputStream>modifyHttpResponseContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)software.amazon.awssdk.core.SdkRequestmodifyRequest(software.amazon.awssdk.core.interceptor.Context.ModifyRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)software.amazon.awssdk.core.SdkResponsemodifyResponse(software.amazon.awssdk.core.interceptor.Context.ModifyResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)voidonExecutionFailure(software.amazon.awssdk.core.interceptor.Context.FailedExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
-
-
-
Method Detail
-
beforeExecution
public void beforeExecution(software.amazon.awssdk.core.interceptor.Context.BeforeExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
beforeExecutionin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyRequest
public software.amazon.awssdk.core.SdkRequest modifyRequest(software.amazon.awssdk.core.interceptor.Context.ModifyRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
modifyRequestin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
beforeMarshalling
public void beforeMarshalling(software.amazon.awssdk.core.interceptor.Context.BeforeMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
beforeMarshallingin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
afterMarshalling
public void afterMarshalling(software.amazon.awssdk.core.interceptor.Context.AfterMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
afterMarshallingin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyHttpRequest
public software.amazon.awssdk.http.SdkHttpRequest modifyHttpRequest(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
modifyHttpRequestin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyHttpContent
public Optional<software.amazon.awssdk.core.sync.RequestBody> modifyHttpContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
- Specified by:
modifyHttpContentin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyAsyncHttpContent
public Optional<software.amazon.awssdk.core.async.AsyncRequestBody> modifyAsyncHttpContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
- Specified by:
modifyAsyncHttpContentin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
beforeTransmission
public void beforeTransmission(software.amazon.awssdk.core.interceptor.Context.BeforeTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
beforeTransmissionin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
afterTransmission
public void afterTransmission(software.amazon.awssdk.core.interceptor.Context.AfterTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
afterTransmissionin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyHttpResponse
public software.amazon.awssdk.http.SdkHttpResponse modifyHttpResponse(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
modifyHttpResponsein interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyAsyncHttpResponseContent
public Optional<org.reactivestreams.Publisher<ByteBuffer>> modifyAsyncHttpResponseContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
- Specified by:
modifyAsyncHttpResponseContentin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyHttpResponseContent
public Optional<InputStream> modifyHttpResponseContent(software.amazon.awssdk.core.interceptor.Context.ModifyHttpResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
- Specified by:
modifyHttpResponseContentin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
beforeUnmarshalling
public void beforeUnmarshalling(software.amazon.awssdk.core.interceptor.Context.BeforeUnmarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
beforeUnmarshallingin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
afterUnmarshalling
public void afterUnmarshalling(software.amazon.awssdk.core.interceptor.Context.AfterUnmarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
afterUnmarshallingin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyResponse
public software.amazon.awssdk.core.SdkResponse modifyResponse(software.amazon.awssdk.core.interceptor.Context.ModifyResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
modifyResponsein interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
afterExecution
public void afterExecution(software.amazon.awssdk.core.interceptor.Context.AfterExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
afterExecutionin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
modifyException
public Throwable modifyException(software.amazon.awssdk.core.interceptor.Context.FailedExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
- Specified by:
modifyExceptionin interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
onExecutionFailure
public void onExecutionFailure(software.amazon.awssdk.core.interceptor.Context.FailedExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)- Specified by:
onExecutionFailurein interfacesoftware.amazon.awssdk.core.interceptor.ExecutionInterceptor
-
-