public class JavaTracingInterceptor extends Object implements CloudTracingInterceptor
| Constructor and Description |
|---|
JavaTracingInterceptor()
Initializes a new instance of the JavaTracingInterceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configuration(String source,
String name,
String value)
Probe configuration for the value of a setting.
|
void |
enter(String invocationId,
Object instance,
String method,
HashMap<String,Object> parameters)
Enter a method.
|
void |
error(String invocationId,
Exception exception)
Raise an error.
|
void |
exit(String invocationId,
Object returnValue)
Exit a method.
|
void |
information(String message)
Trace information.
|
void |
receiveResponse(String invocationId,
org.apache.http.HttpResponse response)
Receive an HTTP response.
|
void |
sendRequest(String invocationId,
org.apache.http.HttpRequest request)
Send an HTTP request.
|
public JavaTracingInterceptor()
public void information(String message)
information in interface CloudTracingInterceptormessage - The information to trace.public void configuration(String source, String name, String value)
configuration in interface CloudTracingInterceptorsource - The configuration source.name - The name of the setting.value - The value of the setting in the source.public void enter(String invocationId, Object instance, String method, HashMap<String,Object> parameters)
enter in interface CloudTracingInterceptorinvocationId - Method invocation identifier.instance - The instance with the method.method - Name of the method.parameters - Method parameters.public void sendRequest(String invocationId, org.apache.http.HttpRequest request)
sendRequest in interface CloudTracingInterceptorinvocationId - Method invocation identifier.request - The request about to be sent.public void receiveResponse(String invocationId, org.apache.http.HttpResponse response)
receiveResponse in interface CloudTracingInterceptorinvocationId - Method invocation identifier.response - The response instance.public void error(String invocationId, Exception exception)
error in interface CloudTracingInterceptorinvocationId - Method invocation identifier.exception - The error.public void exit(String invocationId, Object returnValue)
exit in interface CloudTracingInterceptorinvocationId - Method invocation identifier.returnValue - Method return value./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/