public abstract class AbstractSpanCollector extends FlushingSpanCollector
sendSpans(byte[]) to transport a encoded list of spans to Zipkin.| Constructor and Description |
|---|
AbstractSpanCollector(SpanCodec codec,
SpanCollectorMetricsHandler metrics,
int flushInterval) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
reportSpans(List<Span> drained)
Reports a list of spans over the current transport.
|
protected abstract void |
sendSpans(byte[] encoded)
Sends a encoded list of spans over the current transport.
|
addDefaultAnnotation, close, collect, flushpublic AbstractSpanCollector(SpanCodec codec, SpanCollectorMetricsHandler metrics, int flushInterval)
flushInterval - in seconds. 0 implies spans are {@link #flush() flushed externally.protected void reportSpans(List<Span> drained) throws IOException
FlushingSpanCollectorreportSpans in class FlushingSpanCollectorIOException - (or RuntimeException) when thrown, drop metrics will increment accordinglyprotected abstract void sendSpans(byte[] encoded)
throws IOException
IOException - when thrown, drop metrics will increment accordinglyCopyright © 2016. All rights reserved.