SpanCollector, java.io.Closeable, java.io.Flushable, java.lang.AutoCloseableAbstractSpanCollectorAsyncReporter@Deprecated public abstract class FlushingSpanCollector extends java.lang.Object implements SpanCollector, java.io.Flushable, java.io.Closeable
| Modifier | Constructor | Description |
|---|---|---|
protected |
FlushingSpanCollector(SpanCollectorMetricsHandler metrics,
int flushInterval) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDefaultAnnotation(java.lang.String key,
java.lang.String value) |
Deprecated.
Adds a fixed annotation that will be added to every span that is submitted to this collector.
|
void |
close() |
Deprecated.
Requests a cease of delivery.
|
void |
collect(Span span) |
Deprecated.
Queues the span for collection, or drops it if the queue is full.
|
void |
flush() |
Deprecated.
Calling this will flush any pending spans to the transport on the current thread.
|
protected abstract void |
reportSpans(java.util.List<Span> drained) |
Deprecated.
Reports a list of spans over the current transport.
|
protected FlushingSpanCollector(SpanCollectorMetricsHandler metrics, int flushInterval)
flushInterval - in seconds. 0 implies spans are flushed externally.public void collect(Span span)
collect in interface SpanCollectorspan - Span, should not be null.public void flush()
flush in interface java.io.Flushableprotected abstract void reportSpans(java.util.List<Span> drained) throws java.io.IOException
java.io.IOException - (or RuntimeException) when thrown, drop metrics will increment accordinglypublic void addDefaultAnnotation(java.lang.String key,
java.lang.String value)
SpanCollectoraddDefaultAnnotation in interface SpanCollectorkey - Annotation name/key. Should not be empty or null.value - Annotation value. Should not be null.public void close()
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableCopyright © 2018 OpenZipkin. All rights reserved.