@Monitor(value="Zipkin Service Monitor", category=ServiceMonitor.class, defaultEnabled=true) public class TraceServiceMonitor extends java.lang.Object implements ServiceMonitor
Constructor and Description |
---|
TraceServiceMonitor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
onError(java.lang.Throwable t,
java.util.Map<java.lang.String,java.lang.String> headers) |
java.lang.Object |
onRequest(java.lang.Object request,
java.util.Map<java.lang.String,java.lang.String> headers)
Only for HTTP services.
|
java.lang.Object |
onResponse(java.lang.Object response,
java.util.Map<java.lang.String,java.lang.String> headers)
Called before the response is sent out from the MDW event handler or camel route.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onHandle
public java.lang.Object onRequest(java.lang.Object request, java.util.Map<java.lang.String,java.lang.String> headers)
onRequest
in interface ServiceMonitor
request
- Incoming request message content (String, XMLBean, JAXB Element, JSONObject, etc).headers
- Incoming protocol header values. May be modified by the monitor.public java.lang.Object onResponse(java.lang.Object response, java.util.Map<java.lang.String,java.lang.String> headers)
ServiceMonitor
onResponse
in interface ServiceMonitor
response
- Outgoing response message content (probably a String, XMLBean or JAXB Element)headers
- Outbound protocol header values. May be modified by the monitor.public java.lang.Object onError(java.lang.Throwable t, java.util.Map<java.lang.String,java.lang.String> headers)
onError
in interface ServiceMonitor
t
- Throwable error that was encounteredheaders
- service meta informationCopyright © 2019 CenturyLink, Inc.