public final class ZipkinPublisher extends java.lang.Object implements InMemorySpanEventListener, java.io.Closeable
Span
s 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.Closeable
close
in interface java.lang.AutoCloseable
public void onSpanStarted(InMemorySpan span)
InMemorySpanEventListener
onSpanStarted
in interface InMemorySpanEventListener
span
- the spanpublic void onEventLogged(InMemorySpan span, long epochMicros, java.lang.String eventName)
InMemorySpanEventListener
onEventLogged
in interface InMemorySpanEventListener
span
- 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)
InMemorySpanEventListener
onEventLogged
in interface InMemorySpanEventListener
span
- the span the event was associated withepochMicros
- timestamp epoch in microsecondsfields
- fields as a mappublic void onSpanFinished(InMemorySpan span, long durationMicros)
InMemorySpanEventListener
onSpanFinished
in interface InMemorySpanEventListener
span
- the spandurationMicros
- duration in microseconds