public class SpanSimulate
extends java.lang.Object
implements io.opentelemetry.api.trace.Span
构造器和说明 |
---|
SpanSimulate() |
限定符和类型 | 方法和说明 |
---|---|
io.opentelemetry.api.trace.Span |
addEvent(java.lang.String s,
io.opentelemetry.api.common.Attributes attributes) |
io.opentelemetry.api.trace.Span |
addEvent(java.lang.String s,
io.opentelemetry.api.common.Attributes attributes,
long l,
java.util.concurrent.TimeUnit timeUnit) |
void |
end() |
void |
end(long l,
java.util.concurrent.TimeUnit timeUnit) |
static io.opentelemetry.api.trace.Span |
getInstance() |
io.opentelemetry.api.trace.SpanContext |
getSpanContext() |
boolean |
isRecording() |
io.opentelemetry.api.trace.Span |
recordException(java.lang.Throwable throwable,
io.opentelemetry.api.common.Attributes attributes) |
<T> io.opentelemetry.api.trace.Span |
setAttribute(io.opentelemetry.api.common.AttributeKey<T> attributeKey,
T t) |
io.opentelemetry.api.trace.Span |
setStatus(io.opentelemetry.api.trace.StatusCode statusCode,
java.lang.String s) |
io.opentelemetry.api.trace.Span |
updateName(java.lang.String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static io.opentelemetry.api.trace.Span getInstance()
public <T> io.opentelemetry.api.trace.Span setAttribute(io.opentelemetry.api.common.AttributeKey<T> attributeKey, T t)
setAttribute
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.Span addEvent(java.lang.String s, io.opentelemetry.api.common.Attributes attributes)
addEvent
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.Span addEvent(java.lang.String s, io.opentelemetry.api.common.Attributes attributes, long l, java.util.concurrent.TimeUnit timeUnit)
addEvent
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.Span setStatus(io.opentelemetry.api.trace.StatusCode statusCode, java.lang.String s)
setStatus
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.Span recordException(java.lang.Throwable throwable, io.opentelemetry.api.common.Attributes attributes)
recordException
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.Span updateName(java.lang.String s)
updateName
在接口中 io.opentelemetry.api.trace.Span
public void end()
end
在接口中 io.opentelemetry.api.trace.Span
public void end(long l, java.util.concurrent.TimeUnit timeUnit)
end
在接口中 io.opentelemetry.api.trace.Span
public io.opentelemetry.api.trace.SpanContext getSpanContext()
getSpanContext
在接口中 io.opentelemetry.api.trace.Span
public boolean isRecording()
isRecording
在接口中 io.opentelemetry.api.trace.Span