/** * Represents the tracing error. * * @param invocationId the invocation identifier * @param ex the tracing exception */ public static void error(String invocationId, Exception ex) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.error(invocationId, ex); } } } }
/** * Abandons the tracing method. * * @param invocationId the invocation identifier * @param result method return result */ public static void exit(String invocationId, Object result) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.exit(invocationId, result); } } } }
/** * Receives a tracing response. * * @param invocationId the invocation identifier * @param response the response message instance */ public static void receiveResponse(String invocationId, HttpResponse response) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.receiveResponse(invocationId, response); } } } }
/** * Sends a tracing request. * * @param invocationId the invocation identifier * @param request the request about to be sent */ public static void sendRequest(String invocationId, HttpRequest request) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.sendRequest(invocationId, request); } } } }
/** * Write the informational tracing message. * * @param message the message to trace */ public static void information(String message) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.information(message); } } } }
/** * Represents the tracing configuration for the value of a setting. * * @param source the configuration source * @param name the name of the setting * @param value the name of the setting */ public static void configuration(String source, String name, String value) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.configuration(source, name, value); } } } }
/** * Represents the tracing entry. * * @param invocationId the invocation identifier * @param instance the tracing instance * @param method the tracing method * @param parameters method parameters */ public static void enter( String invocationId, Object instance, String method, HashMap<String, Object> parameters) { if (isEnabled) { synchronized (interceptors) { for (ServiceClientTracingInterceptor writer : interceptors) { writer.enter(invocationId, instance, method, parameters); } } } }