cloudtrace.instrument.receivers
Class SendSpansViaThrift
java.lang.Object
cloudtrace.instrument.receivers.AsyncSpanReceiver<java.lang.String,SpanReceiver.Client>
cloudtrace.instrument.receivers.SendSpansViaThrift
- All Implemented Interfaces:
- SpanReceiver
- Direct Known Subclasses:
- ZooSpanClient
public class SendSpansViaThrift
- extends AsyncSpanReceiver<java.lang.String,SpanReceiver.Client>
Send Span data to a destination using thrift.
Constructor Summary |
SendSpansViaThrift(java.lang.String host,
java.lang.String service,
long millis)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendSpansViaThrift
public SendSpansViaThrift(java.lang.String host,
java.lang.String service,
long millis)
createDestination
protected SpanReceiver.Client createDestination(java.lang.String destination)
throws java.lang.Exception
- Specified by:
createDestination
in class AsyncSpanReceiver<java.lang.String,SpanReceiver.Client>
- Throws:
java.lang.Exception
send
protected void send(SpanReceiver.Client client,
RemoteSpan s)
throws java.lang.Exception
- Specified by:
send
in class AsyncSpanReceiver<java.lang.String,SpanReceiver.Client>
- Throws:
java.lang.Exception
getSpanKey
protected java.lang.String getSpanKey(java.util.Map<java.lang.String,java.lang.String> data)
- Specified by:
getSpanKey
in class AsyncSpanReceiver<java.lang.String,SpanReceiver.Client>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.