Package org.wso2.msf4j.analytics.tracing
Class MSF4JTracingInterceptor
- java.lang.Object
-
- org.wso2.msf4j.analytics.tracing.MSF4JTracingInterceptor
-
- All Implemented Interfaces:
org.wso2.msf4j.Interceptor,org.wso2.msf4j.interceptor.RequestInterceptor,org.wso2.msf4j.interceptor.ResponseInterceptor
public class MSF4JTracingInterceptor extends java.lang.Object implements org.wso2.msf4j.InterceptorInterceptor for tracing server side request/response flows.
-
-
Constructor Summary
Constructors Constructor Description MSF4JTracingInterceptor(java.lang.String microServiceName)Constructor of the MSF4JTracingInterceptor.MSF4JTracingInterceptor(java.lang.String microServiceName, java.lang.String dasUrl)Constructor of the MSF4JTracingInterceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostCall(org.wso2.msf4j.Request request, int status, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)Intercepts the server response flow and extract response information to be published to the DAS for tracing.booleanpreCall(org.wso2.msf4j.Request request, org.wso2.msf4j.Response responder, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo)Intercepts the server request flow and extract request information to be published to the DAS for tracing.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
MSF4JTracingInterceptor
public MSF4JTracingInterceptor(java.lang.String microServiceName)
Constructor of the MSF4JTracingInterceptor.- Parameters:
microServiceName- Name of the Microservice
-
MSF4JTracingInterceptor
public MSF4JTracingInterceptor(java.lang.String microServiceName, java.lang.String dasUrl)Constructor of the MSF4JTracingInterceptor.- Parameters:
microServiceName- Name of the MicroservicedasUrl- URL of the receiver of DAS server
-
-
Method Detail
-
preCall
public boolean preCall(org.wso2.msf4j.Request request, org.wso2.msf4j.Response responder, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo) throws java.lang.ExceptionIntercepts the server request flow and extract request information to be published to the DAS for tracing.- Specified by:
preCallin interfaceorg.wso2.msf4j.Interceptor- Throws:
java.lang.Exception
-
postCall
public void postCall(org.wso2.msf4j.Request request, int status, org.wso2.msf4j.ServiceMethodInfo serviceMethodInfo) throws java.lang.ExceptionIntercepts the server response flow and extract response information to be published to the DAS for tracing.- Specified by:
postCallin interfaceorg.wso2.msf4j.Interceptor- Throws:
java.lang.Exception
-
-