Class BraveFinishedSpan

java.lang.Object
org.springframework.cloud.sleuth.brave.bridge.BraveFinishedSpan
All Implemented Interfaces:
org.springframework.cloud.sleuth.exporter.FinishedSpan

public class BraveFinishedSpan extends Object implements org.springframework.cloud.sleuth.exporter.FinishedSpan
Brave implementation of a FinishedSpan.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • BraveFinishedSpan

      public BraveFinishedSpan(brave.handler.MutableSpan mutableSpan)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getStartTimestamp

      public long getStartTimestamp()
      Specified by:
      getStartTimestamp in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getEndTimestamp

      public long getEndTimestamp()
      Specified by:
      getEndTimestamp in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getTags

      public Map<String,String> getTags()
      Specified by:
      getTags in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getEvents

      public Collection<Map.Entry<Long,String>> getEvents()
      Specified by:
      getEvents in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getSpanId

      public String getSpanId()
      Specified by:
      getSpanId in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getParentId

      public String getParentId()
      Specified by:
      getParentId in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getRemoteIp

      public String getRemoteIp()
      Specified by:
      getRemoteIp in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getLocalIp

      public String getLocalIp()
      Specified by:
      getLocalIp in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getRemotePort

      public int getRemotePort()
      Specified by:
      getRemotePort in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getTraceId

      public String getTraceId()
      Specified by:
      getTraceId in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getError

      public Throwable getError()
      Specified by:
      getError in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getKind

      public org.springframework.cloud.sleuth.Span.Kind getKind()
      Specified by:
      getKind in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • getRemoteServiceName

      public String getRemoteServiceName()
      Specified by:
      getRemoteServiceName in interface org.springframework.cloud.sleuth.exporter.FinishedSpan
    • fromBrave

      public static org.springframework.cloud.sleuth.exporter.FinishedSpan fromBrave(brave.handler.MutableSpan mutableSpan)
    • toBrave

      public static brave.handler.MutableSpan toBrave(org.springframework.cloud.sleuth.exporter.FinishedSpan mutableSpan)
    • toString

      public String toString()
      Overrides:
      toString in class Object