Class MSF4JClientTracingFilter
- java.lang.Object
-
- org.wso2.msf4j.analytics.common.tracing.MSF4JClientTracingFilter
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter,javax.ws.rs.client.ClientResponseFilter
public class MSF4JClientTracingFilter extends java.lang.Object implements javax.ws.rs.client.ClientRequestFilter, javax.ws.rs.client.ClientResponseFilterFilter for tracing client side request/response flow.
-
-
Constructor Summary
Constructors Constructor Description MSF4JClientTracingFilter(java.lang.String clientName)Constructor of the MSF4JClientTracingFilter.MSF4JClientTracingFilter(java.lang.String clientName, java.lang.String dasUrl)Constructor of the MSF4JClientTracingFilter.MSF4JClientTracingFilter(java.lang.String clientName, TraceEvent parentEvent, java.lang.String dasUrl)Constructor of the MSF4JClientTracingFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(javax.ws.rs.client.ClientRequestContext requestContext)Intercepts the client request flow and extract request information to be published to the DAS for tracing.voidfilter(javax.ws.rs.client.ClientRequestContext requestContext, javax.ws.rs.client.ClientResponseContext responseContext)Intercepts the client response flow and extract response information to be published to the DAS server for tracing.
-
-
-
Constructor Detail
-
MSF4JClientTracingFilter
public MSF4JClientTracingFilter(java.lang.String clientName)
Constructor of the MSF4JClientTracingFilter.- Parameters:
clientName- Name of the client
-
MSF4JClientTracingFilter
public MSF4JClientTracingFilter(java.lang.String clientName, java.lang.String dasUrl)Constructor of the MSF4JClientTracingFilter.- Parameters:
clientName- Name of the clientdasUrl- URL of the receiver of DAS server
-
MSF4JClientTracingFilter
public MSF4JClientTracingFilter(java.lang.String clientName, TraceEvent parentEvent, java.lang.String dasUrl)Constructor of the MSF4JClientTracingFilter.- Parameters:
clientName- Name of the clientparentEvent- TraceEvent of the callerdasUrl- URL of the receiver of DAS server
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.client.ClientRequestContext requestContext) throws java.io.IOExceptionIntercepts the client request flow and extract request information to be published to the DAS for tracing.- Specified by:
filterin interfacejavax.ws.rs.client.ClientRequestFilter- Throws:
java.io.IOException
-
filter
public void filter(javax.ws.rs.client.ClientRequestContext requestContext, javax.ws.rs.client.ClientResponseContext responseContext) throws java.io.IOExceptionIntercepts the client response flow and extract response information to be published to the DAS server for tracing.- Specified by:
filterin interfacejavax.ws.rs.client.ClientResponseFilter- Throws:
java.io.IOException
-
-