Class TracingExecutionInterceptor

  • All Implemented Interfaces:
    software.amazon.awssdk.core.interceptor.ExecutionInterceptor

    public class TracingExecutionInterceptor
    extends Object
    implements software.amazon.awssdk.core.interceptor.ExecutionInterceptor
    A ExecutionInterceptor for use as an SPI by the AWS SDK to automatically trace all requests.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterExecution​(software.amazon.awssdk.core.interceptor.Context.AfterExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void afterMarshalling​(software.amazon.awssdk.core.interceptor.Context.AfterMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void afterTransmission​(software.amazon.awssdk.core.interceptor.Context.AfterTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void afterUnmarshalling​(software.amazon.awssdk.core.interceptor.Context.AfterUnmarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void beforeExecution​(software.amazon.awssdk.core.interceptor.Context.BeforeExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void beforeMarshalling​(software.amazon.awssdk.core.interceptor.Context.BeforeMarshalling context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void beforeTransmission​(software.amazon.awssdk.core.interceptor.Context.BeforeTransmission context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void beforeUnmarshalling​(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)  
      Throwable modifyException​(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.SdkHttpRequest modifyHttpRequest​(software.amazon.awssdk.core.interceptor.Context.ModifyHttpRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      software.amazon.awssdk.http.SdkHttpResponse modifyHttpResponse​(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.SdkRequest modifyRequest​(software.amazon.awssdk.core.interceptor.Context.ModifyRequest context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      software.amazon.awssdk.core.SdkResponse modifyResponse​(software.amazon.awssdk.core.interceptor.Context.ModifyResponse context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
      void onExecutionFailure​(software.amazon.awssdk.core.interceptor.Context.FailedExecution context, software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)  
    • Constructor Detail

      • TracingExecutionInterceptor

        public TracingExecutionInterceptor()
    • Method Detail

      • beforeExecution

        public void beforeExecution​(software.amazon.awssdk.core.interceptor.Context.BeforeExecution context,
                                    software.amazon.awssdk.core.interceptor.ExecutionAttributes executionAttributes)
        Specified by:
        beforeExecution in interface software.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:
        modifyRequest in interface software.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:
        beforeMarshalling in interface software.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:
        afterMarshalling in interface software.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:
        modifyHttpRequest in interface software.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:
        modifyHttpContent in interface software.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:
        modifyAsyncHttpContent in interface software.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:
        beforeTransmission in interface software.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:
        afterTransmission in interface software.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:
        modifyHttpResponse in interface software.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:
        modifyAsyncHttpResponseContent in interface software.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:
        modifyHttpResponseContent in interface software.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:
        beforeUnmarshalling in interface software.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:
        afterUnmarshalling in interface software.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:
        modifyResponse in interface software.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:
        afterExecution in interface software.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:
        modifyException in interface software.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:
        onExecutionFailure in interface software.amazon.awssdk.core.interceptor.ExecutionInterceptor