public class TracedSession
extends com.google.common.reflect.AbstractInvocationHandler
implements com.datastax.driver.core.LatencyTracker
Session and writes directly to brave's collector to preserve the
correct duration.
This is a slightly modified version based on:
https://github.com/openzipkin/zipkin/blob/master/zipkin-autoconfigure/storage-cassandra/src/main/java/zipkin/autoconfigure/storage/cassandra/brave/TracedSession.java| Modifier and Type | Method and Description |
|---|---|
static com.datastax.driver.core.Session |
create(com.datastax.driver.core.Session target,
com.github.kristofa.brave.Brave brave,
String serviceName) |
boolean |
equals(Object obj) |
protected Object |
handleInvocation(Object proxy,
Method method,
Object[] args) |
int |
hashCode() |
void |
onRegister(com.datastax.driver.core.Cluster cluster) |
void |
onUnregister(com.datastax.driver.core.Cluster cluster) |
String |
toString() |
void |
update(com.datastax.driver.core.Host host,
com.datastax.driver.core.Statement statement,
Exception e,
long nanos) |
public static com.datastax.driver.core.Session create(com.datastax.driver.core.Session target,
com.github.kristofa.brave.Brave brave,
String serviceName)
public void update(com.datastax.driver.core.Host host,
com.datastax.driver.core.Statement statement,
Exception e,
long nanos)
update in interface com.datastax.driver.core.LatencyTrackerprotected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable
handleInvocation in class com.google.common.reflect.AbstractInvocationHandlerThrowablepublic boolean equals(Object obj)
equals in class com.google.common.reflect.AbstractInvocationHandlerpublic int hashCode()
hashCode in class com.google.common.reflect.AbstractInvocationHandlerpublic String toString()
toString in class com.google.common.reflect.AbstractInvocationHandlerpublic void onRegister(com.datastax.driver.core.Cluster cluster)
onRegister in interface com.datastax.driver.core.LatencyTrackerpublic void onUnregister(com.datastax.driver.core.Cluster cluster)
onUnregister in interface com.datastax.driver.core.LatencyTrackerCopyright © 2016–2017 SmartThingsOSS. All rights reserved.