SpanCollectorAsyncReporter@Deprecated public abstract class AbstractSpanCollector extends FlushingSpanCollector
sendSpans(byte[]) to transport a encoded list of spans to Zipkin.| Constructor | Description |
|---|---|
AbstractSpanCollector(SpanCodec codec,
SpanCollectorMetricsHandler metrics,
int flushInterval) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
reportSpans(java.util.List<Span> drained) |
Deprecated.
Reports a list of spans over the current transport.
|
protected abstract void |
sendSpans(byte[] encoded) |
Deprecated.
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 flushed externally.protected void reportSpans(java.util.List<Span> drained) throws java.io.IOException
FlushingSpanCollectorreportSpans in class FlushingSpanCollectorjava.io.IOException - (or RuntimeException) when thrown, drop metrics will increment accordinglyprotected abstract void sendSpans(byte[] encoded)
throws java.io.IOException
java.io.IOException - when thrown, drop metrics will increment accordinglyCopyright © 2018 OpenZipkin. All rights reserved.