Package com.amazonaws.xray.handlers
Class TracingHandler
- java.lang.Object
-
- com.amazonaws.handlers.RequestHandler2
-
- com.amazonaws.xray.handlers.TracingHandler
-
- All Implemented Interfaces:
com.amazonaws.handlers.IRequestHandler2
public class TracingHandler extends com.amazonaws.handlers.RequestHandler2
Extension ofRequestHandler2
that intercepts requests made byAmazonWebServiceClient
s and generates corresponding subsegments. Operation-level customization of this request handler is by default performed based on the information contained in the file at"/com/amazonaws/xray/handlers/DefaultOperationParameterWhitelist.json")
.
-
-
Constructor Summary
Constructors Constructor Description TracingHandler()
TracingHandler(AWSXRayRecorder recorder)
TracingHandler(AWSXRayRecorder recorder, java.lang.String accountId)
TracingHandler(AWSXRayRecorder recorder, java.lang.String accountId, java.net.URL operationParameterWhitelist)
TracingHandler(AWSXRayRecorder recorder, java.net.URL operationParameterWhitelist)
TracingHandler(java.lang.String accountId)
TracingHandler(java.lang.String accountId, java.net.URL operationParameterWhitelist)
TracingHandler(java.net.URL operationParameterWhitelist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterError(com.amazonaws.Request<?> request, com.amazonaws.Response<?> response, java.lang.Exception e)
void
afterResponse(com.amazonaws.Request<?> request, com.amazonaws.Response<?> response)
com.amazonaws.AmazonWebServiceRequest
beforeExecution(com.amazonaws.AmazonWebServiceRequest request)
void
beforeRequest(com.amazonaws.Request<?> request)
-
-
-
Constructor Detail
-
TracingHandler
public TracingHandler()
-
TracingHandler
public TracingHandler(AWSXRayRecorder recorder)
-
TracingHandler
public TracingHandler(java.lang.String accountId)
-
TracingHandler
public TracingHandler(AWSXRayRecorder recorder, java.lang.String accountId)
-
TracingHandler
public TracingHandler(java.net.URL operationParameterWhitelist)
-
TracingHandler
public TracingHandler(AWSXRayRecorder recorder, java.net.URL operationParameterWhitelist)
-
TracingHandler
public TracingHandler(java.lang.String accountId, java.net.URL operationParameterWhitelist)
-
TracingHandler
public TracingHandler(AWSXRayRecorder recorder, java.lang.String accountId, java.net.URL operationParameterWhitelist)
-
-
Method Detail
-
beforeExecution
public com.amazonaws.AmazonWebServiceRequest beforeExecution(com.amazonaws.AmazonWebServiceRequest request)
- Specified by:
beforeExecution
in interfacecom.amazonaws.handlers.IRequestHandler2
- Overrides:
beforeExecution
in classcom.amazonaws.handlers.RequestHandler2
-
beforeRequest
public void beforeRequest(com.amazonaws.Request<?> request)
- Specified by:
beforeRequest
in interfacecom.amazonaws.handlers.IRequestHandler2
- Overrides:
beforeRequest
in classcom.amazonaws.handlers.RequestHandler2
-
afterResponse
public void afterResponse(com.amazonaws.Request<?> request, com.amazonaws.Response<?> response)
- Specified by:
afterResponse
in interfacecom.amazonaws.handlers.IRequestHandler2
- Overrides:
afterResponse
in classcom.amazonaws.handlers.RequestHandler2
-
afterError
public void afterError(com.amazonaws.Request<?> request, com.amazonaws.Response<?> response, java.lang.Exception e)
- Specified by:
afterError
in interfacecom.amazonaws.handlers.IRequestHandler2
- Overrides:
afterError
in classcom.amazonaws.handlers.RequestHandler2
-
-