Interface FinishedSpan


public interface FinishedSpan
This API is inspired by OpenZipkin Brave (from {code MutableSpan}). Represents a span that has been finished and is ready to be sent to an external location (e.g. Zipkin).
Since:
3.0.0
Author:
OpenZipkin Brave Authors, Marcin Grzejszczak
  • Method Details

    • getName

      String getName()
      Returns:
      span's name
    • getStartTimestamp

      long getStartTimestamp()
      Returns:
      span's start timestamp
    • getEndTimestamp

      long getEndTimestamp()
      Returns:
      span's end timestamp
    • getTags

      Map<String,String> getTags()
      Returns:
      span's tags
    • getEvents

      Returns:
      span's events as timestamp to value mapping
    • getSpanId

      String getSpanId()
      Returns:
      span's span id
    • getParentId

      @Nullable String getParentId()
      Returns:
      span's parent id or null if not set
    • getRemoteIp

      @Nullable String getRemoteIp()
      Returns:
      span's remote ip
    • getLocalIp

      @Nullable default String getLocalIp()
      Returns:
      span's local ip
    • getRemotePort

      int getRemotePort()
      Returns:
      span's remote port
    • getTraceId

      String getTraceId()
      Returns:
      span's trace id
    • getError

      @Nullable Throwable getError()
      Returns:
      corresponding error or null if one was not thrown
    • getKind

      Span.Kind getKind()
      Returns:
      span's kind
    • getRemoteServiceName

      @Nullable String getRemoteServiceName()
      Returns:
      remote service name or null if not set