public interface SpanData
Span to the observer
methods.| Modifier and Type | Method and Description |
|---|---|
Object |
getBaggageItem(String key)
This method retrieves a baggage item associated with the supplied key.
|
Boolean |
getBooleanTag(String key)
This method returns the tag value, associated with the supplied key,
if it exists and has a
Boolean type. |
Object |
getCorrelationId()
This method returns an id that can be used for correlate actions invoked on a
stateful observer.
|
long |
getDuration()
The duration of the
Span. |
long |
getFinishTime()
The finish time of the
Span. |
Number |
getNumberTag(String key)
This method returns the tag value, associated with the supplied key,
if it exists and has a
Number type. |
String |
getOperationName()
The operation name of the
Span. |
long |
getStartTime()
The start time of the
Span. |
String |
getStringTag(String key)
This method returns the tag value, associated with the supplied key,
if it exists and has a
String type. |
Map<String,Object> |
getTags()
This method provides access to the tags associated with the span.
|
Object getCorrelationId()
long getStartTime()
Span.long getFinishTime()
Span.long getDuration()
Span.String getOperationName()
Span.Map<String,Object> getTags()
String getStringTag(String key)
String type.key - The tag keyString type, otherwise nullNumber getNumberTag(String key)
Number type.key - The tag keyNumber type, otherwise nullBoolean getBooleanTag(String key)
Boolean type.key - The tag keyBoolean type, otherwise nullCopyright © 2017–2018 OpenTracing. All rights reserved.