Class SpanWrapper
- java.lang.Object
-
- com.couchbase.client.core.transaction.support.SpanWrapper
-
-
Constructor Summary
Constructors Constructor Description SpanWrapper(RequestSpan span)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> SpanWrapper
attribute(String key, T value)
static SpanWrapper
create(RequestTracer tracer, String op, SpanWrapper parent)
long
elapsedMicros()
long
finish()
long
finish(Throwable err)
long
finishWithErrorStatus()
boolean
isInternal()
void
recordException(Throwable err)
void
recordExceptionAndSetErrorStatus(Throwable err)
void
setErrorStatus()
RequestSpan
span()
-
-
-
Constructor Detail
-
SpanWrapper
public SpanWrapper(RequestSpan span)
-
-
Method Detail
-
elapsedMicros
public long elapsedMicros()
-
finish
public long finish()
-
create
public static SpanWrapper create(RequestTracer tracer, String op, @Nullable SpanWrapper parent)
-
attribute
public <T> SpanWrapper attribute(String key, T value)
-
span
public RequestSpan span()
-
finishWithErrorStatus
public long finishWithErrorStatus()
-
setErrorStatus
public void setErrorStatus()
-
recordExceptionAndSetErrorStatus
public void recordExceptionAndSetErrorStatus(Throwable err)
-
recordException
public void recordException(Throwable err)
-
isInternal
public boolean isInternal()
-
-