Interface InMemorySpanEventListener
-
- All Known Implementing Classes:
ZipkinPublisher
public interface InMemorySpanEventListener
Listener for tracing events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onEventLogged(InMemorySpan span, long epochMicros, java.lang.String eventName)
Called when an event was logged.void
onEventLogged(InMemorySpan span, long epochMicros, java.util.Map<java.lang.String,?> fields)
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.
-
-
-
Method Detail
-
onSpanStarted
void onSpanStarted(InMemorySpan span)
Called when a span has started.- Parameters:
span
- the span
-
onEventLogged
void onEventLogged(InMemorySpan span, long epochMicros, java.lang.String eventName)
Called when an event was logged.- Parameters:
span
- the span the event was associated withepochMicros
- timestamp epoch in microsecondseventName
- event name
-
onEventLogged
void onEventLogged(InMemorySpan span, long epochMicros, java.util.Map<java.lang.String,?> fields)
Called when an event was logged.- Parameters:
span
- the span the event was associated withepochMicros
- timestamp epoch in microsecondsfields
- fields as a map
-
onSpanFinished
void onSpanFinished(InMemorySpan span, long durationMicros)
Called when a span has finished.- Parameters:
span
- the spandurationMicros
- duration in microseconds
-
-