public class Span extends RequestTraceSpan implements io.opentracing.Span
RequestTraceSpan.SpanContextRelationshipType, RequestTraceSpan.SpanReference| Constructor and Description |
|---|
Span(String operationName,
String applicationName)
Constructor that creates a RequestTraceSpan object and sets the application name that this Span was created from.
|
| Modifier and Type | Method and Description |
|---|---|
io.opentracing.SpanContext |
context() |
void |
finish() |
void |
finish(long finishMicros) |
String |
getApplicationName()
Returns the name of the application that this Span was created from.
|
String |
getBaggageItem(String key) |
io.opentracing.Span |
log(long timestampMicroseconds,
Map<String,?> map) |
io.opentracing.Span |
log(long timestampMicroseconds,
String logEvent) |
io.opentracing.Span |
log(Map<String,?> map) |
io.opentracing.Span |
log(String logEvent) |
void |
postConstruct() |
io.opentracing.Span |
setBaggageItem(String key,
String value) |
io.opentracing.Span |
setOperationName(String operationName) |
void |
setStartTime(long startTimeMicros)
Sets the start time of the Span.
|
io.opentracing.Span |
setTag(String tagName,
boolean tagValue) |
io.opentracing.Span |
setTag(String tagName,
Number tagValue) |
io.opentracing.Span |
setTag(String tagName,
String tagValue) |
addSpanLog, addSpanReference, addSpanTag, compareTo, getEventName, getEventType, getId, getSpanContext, getSpanDuration, getSpanReferences, getSpanTag, getSpanTags, getStartInstant, getTimeOccured, getTraceEndTime, getTraceId, setEventName, setEventType, setSpanDuration, setStartInstant, setTraceEndTime, setTraceId, toStringpublic Span(String operationName, String applicationName)
operationName - The name of the spanapplicationName - The name of the application that this Span was created from@PostConstruct public void postConstruct()
public String getApplicationName()
public io.opentracing.SpanContext context()
context in interface io.opentracing.Spanpublic io.opentracing.Span setTag(String tagName, String tagValue)
setTag in interface io.opentracing.Spanpublic io.opentracing.Span setTag(String tagName, boolean tagValue)
setTag in interface io.opentracing.Spanpublic io.opentracing.Span setTag(String tagName, Number tagValue)
setTag in interface io.opentracing.Spanpublic io.opentracing.Span log(Map<String,?> map)
log in interface io.opentracing.Spanpublic io.opentracing.Span log(long timestampMicroseconds,
Map<String,?> map)
log in interface io.opentracing.Spanpublic io.opentracing.Span log(String logEvent)
log in interface io.opentracing.Spanpublic io.opentracing.Span log(long timestampMicroseconds,
String logEvent)
log in interface io.opentracing.Spanpublic io.opentracing.Span setBaggageItem(String key, String value)
setBaggageItem in interface io.opentracing.Spanpublic String getBaggageItem(String key)
getBaggageItem in interface io.opentracing.Spanpublic io.opentracing.Span setOperationName(String operationName)
setOperationName in interface io.opentracing.Spanpublic void finish()
finish in interface io.opentracing.Spanpublic void finish(long finishMicros)
finish in interface io.opentracing.Spanpublic void setStartTime(long startTimeMicros)
startTimeMicros - The start time of the Span in MicrosecondsCopyright © 2019. All rights reserved.