public final class ZipkinPublisher extends java.lang.Object implements InMemorySpanEventListener, java.io.Closeable
Spans to the zipkin transport.| Modifier and Type | Class and Description |
|---|---|
static class |
ZipkinPublisher.Builder
Builder for
ZipkinPublisher. |
static class |
ZipkinPublisher.Encoder
The serialization format for the zipkin write format data.
|
static class |
ZipkinPublisher.Transport
The networking transport to use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
onEventLogged(InMemorySpan span,
long epochMicros,
java.util.Map<java.lang.String,?> fields)
Called when an event was logged.
|
void |
onEventLogged(InMemorySpan span,
long epochMicros,
java.lang.String eventName)
Called when an event was logged.
|
void |
onSpanFinished(InMemorySpan span,
long durationMicros)
Called when a span has finished.
|
void |
onSpanStarted(InMemorySpan span)
Called when a span has started.
|
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void onSpanStarted(InMemorySpan span)
InMemorySpanEventListeneronSpanStarted in interface InMemorySpanEventListenerspan - the spanpublic void onEventLogged(InMemorySpan span, long epochMicros, java.lang.String eventName)
InMemorySpanEventListeneronEventLogged in interface InMemorySpanEventListenerspan - the span the event was associated withepochMicros - timestamp epoch in microsecondseventName - event namepublic void onEventLogged(InMemorySpan span, long epochMicros, java.util.Map<java.lang.String,?> fields)
InMemorySpanEventListeneronEventLogged in interface InMemorySpanEventListenerspan - the span the event was associated withepochMicros - timestamp epoch in microsecondsfields - fields as a mappublic void onSpanFinished(InMemorySpan span, long durationMicros)
InMemorySpanEventListeneronSpanFinished in interface InMemorySpanEventListenerspan - the spandurationMicros - duration in microseconds