Class ZipkinPublisher

    • Method Detail

      • onEventLogged

        public void onEventLogged​(InMemorySpan span,
                                  long epochMicros,
                                  java.lang.String eventName)
        Description copied from interface: InMemorySpanEventListener
        Called when an event was logged.
        Specified by:
        onEventLogged in interface InMemorySpanEventListener
        Parameters:
        span - the span the event was associated with
        epochMicros - timestamp epoch in microseconds
        eventName - event name
      • onEventLogged

        public void onEventLogged​(InMemorySpan span,
                                  long epochMicros,
                                  java.util.Map<java.lang.String,​?> fields)
        Description copied from interface: InMemorySpanEventListener
        Called when an event was logged.
        Specified by:
        onEventLogged in interface InMemorySpanEventListener
        Parameters:
        span - the span the event was associated with
        epochMicros - timestamp epoch in microseconds
        fields - fields as a map
      • onSpanFinished

        public void onSpanFinished​(InMemorySpan span,
                                   long durationMicros)
        Converts a finished InMemorySpan to a Span and passes it to the Reporter.report(Object).
        Specified by:
        onSpanFinished in interface InMemorySpanEventListener
        Parameters:
        span - the span
        durationMicros - duration in microseconds
      • close

        public void close()
        Blocking close method delegates to closeAsync().
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable