public class Span extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Long |
startTick
Internal field, used for deriving duration with
System.nanoTime(). |
| Constructor and Description |
|---|
Span() |
| Modifier and Type | Method and Description |
|---|---|
Span |
addToAnnotations(Annotation elem) |
Span |
addToBinary_annotations(BinaryAnnotation elem) |
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
List<BinaryAnnotation> |
getBinary_annotations() |
Long |
getDuration()
Measurement of duration in microseconds, used to support queries.
|
long |
getId() |
String |
getName()
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
Long |
getParent_id() |
Long |
getTimestamp()
Microseconds from epoch of the creation of this span.
|
long |
getTrace_id() |
int |
hashCode() |
Boolean |
isDebug() |
Span |
setAnnotations(List<Annotation> annotations) |
Span |
setBinaryAnnotations(List<BinaryAnnotation> binary_annotations) |
Span |
setDebug(Boolean debug) |
Span |
setDuration(Long duration)
Measurement of duration in microseconds, used to support queries.
|
Span |
setId(long id) |
Span |
setName(String name)
Span name in lowercase, rpc method for example
Conventionally, when the span name isn't known, name = "unknown".
|
Span |
setParent_id(Long parent_id) |
Span |
setTimestamp(Long timestamp)
Microseconds from epoch of the creation of this span.
|
Span |
setTrace_id(long trace_id) |
String |
toString() |
zipkin.Span |
toZipkin()
Changes this to a zipkin-native span object.
|
public volatile Long startTick
System.nanoTime().public long getTrace_id()
public Span setTrace_id(long trace_id)
public String getName()
public Span setName(String name)
public long getId()
public Span setId(long id)
public Long getParent_id()
public Span addToAnnotations(Annotation elem)
public List<Annotation> getAnnotations()
public Span setAnnotations(List<Annotation> annotations)
public Span addToBinary_annotations(BinaryAnnotation elem)
public List<BinaryAnnotation> getBinary_annotations()
public Span setBinaryAnnotations(List<BinaryAnnotation> binary_annotations)
public Boolean isDebug()
public Long getTimestamp()
public Span setTimestamp(Long timestamp)
public Long getDuration()
public Span setDuration(Long duration)
public zipkin.Span toZipkin()
Copyright © 2016. All rights reserved.