public class Span extends Object implements Serializable
| Constructor and Description |
|---|
Span() |
Span(List<BinaryAnnotation> binaryAnnotations,
List<Annotation> annotations) |
Span(Span span,
List<BinaryAnnotation> binaryAnnotations,
List<Annotation> annotations)
Copy construct, with ability to specify binary annotations and annotations.
|
| Modifier and Type | Method and Description |
|---|---|
MappingResult |
binaryAnnotationMapping() |
boolean |
clientSpan() |
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
BinaryAnnotation |
getBinaryAnnotation(String key) |
List<BinaryAnnotation> |
getBinaryAnnotations() |
Boolean |
getDebug() |
Long |
getDuration() |
String |
getId() |
String |
getName() |
String |
getParentId() |
Long |
getTimestamp() |
String |
getTraceId() |
int |
hashCode() |
String |
ipv4() |
boolean |
serverSpan() |
String |
service() |
void |
setDebug(Boolean debug) |
void |
setDuration(Long duration) |
void |
setId(String id) |
void |
setName(String name) |
void |
setParentId(String parentId) |
void |
setTimestamp(Long timestamp) |
void |
setTraceId(String traceId) |
boolean |
topLevelSpan() |
String |
toString() |
URL |
url() |
public Span()
public Span(List<BinaryAnnotation> binaryAnnotations, List<Annotation> annotations)
public Span(Span span, List<BinaryAnnotation> binaryAnnotations, List<Annotation> annotations)
span - span to be copiedbinaryAnnotations - binary annotations of the spanannotations - annotations of the spanpublic String getTraceId()
public void setTraceId(String traceId)
traceId - the traceId to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getId()
public void setId(String id)
id - the id to setpublic String getParentId()
public void setParentId(String parentId)
parentId - the parentId to setpublic List<Annotation> getAnnotations()
public List<BinaryAnnotation> getBinaryAnnotations()
public Boolean getDebug()
public void setDebug(Boolean debug)
debug - the debug to setpublic Long getTimestamp()
public void setTimestamp(Long timestamp)
timestamp - the timestamp to setpublic Long getDuration()
public void setDuration(Long duration)
duration - the duration to setpublic boolean topLevelSpan()
public boolean clientSpan()
public boolean serverSpan()
public BinaryAnnotation getBinaryAnnotation(String key)
public MappingResult binaryAnnotationMapping()
public String ipv4()
public String service()
public URL url()
Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.