Interface FinishedSpan
-
public interface FinishedSpanThis 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longgetEndTimestamp()ThrowablegetError()Collection<Map.Entry<Long,String>>getEvents()Span.KindgetKind()default StringgetLocalIp()StringgetName()StringgetParentId()StringgetRemoteIp()intgetRemotePort()StringgetRemoteServiceName()StringgetSpanId()longgetStartTimestamp()Map<String,String>getTags()StringgetTraceId()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- span's name
-
getStartTimestamp
long getStartTimestamp()
- Returns:
- span's start timestamp
-
getEndTimestamp
long getEndTimestamp()
- Returns:
- span's end timestamp
-
getEvents
Collection<Map.Entry<Long,String>> 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
nullif 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
nullif one was not thrown
-
getKind
Span.Kind getKind()
- Returns:
- span's kind
-
getRemoteServiceName
@Nullable String getRemoteServiceName()
- Returns:
- remote service name or
nullif not set
-
-