public class SpanSimulate
extends java.lang.Object
implements io.opentracing.Span
构造器和说明 |
---|
SpanSimulate() |
限定符和类型 | 方法和说明 |
---|---|
io.opentracing.SpanContext |
context() |
void |
finish() |
void |
finish(long finishMicros) |
java.lang.String |
getBaggageItem(java.lang.String key) |
static io.opentracing.Span |
getInstance() |
io.opentracing.Span |
log(long timestampMicroseconds,
java.util.Map<java.lang.String,?> fields) |
io.opentracing.Span |
log(long timestampMicroseconds,
java.lang.String event) |
io.opentracing.Span |
log(java.util.Map<java.lang.String,?> fields) |
io.opentracing.Span |
log(java.lang.String event) |
io.opentracing.Span |
setBaggageItem(java.lang.String key,
java.lang.String value) |
io.opentracing.Span |
setOperationName(java.lang.String operationName) |
io.opentracing.Span |
setTag(java.lang.String key,
boolean value) |
io.opentracing.Span |
setTag(java.lang.String key,
java.lang.Number value) |
io.opentracing.Span |
setTag(java.lang.String key,
java.lang.String value) |
<T> io.opentracing.Span |
setTag(io.opentracing.tag.Tag<T> tag,
T value) |
public static io.opentracing.Span getInstance()
public io.opentracing.SpanContext context()
context
在接口中 io.opentracing.Span
public io.opentracing.Span setTag(java.lang.String key, java.lang.String value)
setTag
在接口中 io.opentracing.Span
public io.opentracing.Span setTag(java.lang.String key, boolean value)
setTag
在接口中 io.opentracing.Span
public io.opentracing.Span setTag(java.lang.String key, java.lang.Number value)
setTag
在接口中 io.opentracing.Span
public <T> io.opentracing.Span setTag(io.opentracing.tag.Tag<T> tag, T value)
setTag
在接口中 io.opentracing.Span
public io.opentracing.Span log(java.util.Map<java.lang.String,?> fields)
log
在接口中 io.opentracing.Span
public io.opentracing.Span log(long timestampMicroseconds, java.util.Map<java.lang.String,?> fields)
log
在接口中 io.opentracing.Span
public io.opentracing.Span log(java.lang.String event)
log
在接口中 io.opentracing.Span
public io.opentracing.Span log(long timestampMicroseconds, java.lang.String event)
log
在接口中 io.opentracing.Span
public io.opentracing.Span setBaggageItem(java.lang.String key, java.lang.String value)
setBaggageItem
在接口中 io.opentracing.Span
public java.lang.String getBaggageItem(java.lang.String key)
getBaggageItem
在接口中 io.opentracing.Span
public io.opentracing.Span setOperationName(java.lang.String operationName)
setOperationName
在接口中 io.opentracing.Span
public void finish()
finish
在接口中 io.opentracing.Span
public void finish(long finishMicros)
finish
在接口中 io.opentracing.Span