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
- Returns:
- span's tags
-
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
- Returns:
- span's parent id or
nullif not set
-
getRemoteIp
- Returns:
- span's remote ip
-
getLocalIp
- Returns:
- span's local ip
-
getRemotePort
int getRemotePort()- Returns:
- span's remote port
-
getTraceId
String getTraceId()- Returns:
- span's trace id
-
getError
- Returns:
- corresponding error or
nullif one was not thrown
-
getKind
Span.Kind getKind()- Returns:
- span's kind
-
getRemoteServiceName
- Returns:
- remote service name or
nullif not set
-