Class SpanWrapper
java.lang.Object
com.couchbase.client.core.transaction.support.SpanWrapper
Wraps a RequestSpan, with the value-add that it automatically records how long the operation took for
transaction logging.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> SpanWrapper
static SpanWrapper
create
(RequestTracer tracer, String op, SpanWrapper parent) long
long
finish()
long
long
boolean
<T> SpanWrapper
lowCardinalityAttribute
(String key, T value) void
recordException
(Throwable err) void
void
span()
-
Constructor Details
-
SpanWrapper
-
-
Method Details
-
elapsedMicros
public long elapsedMicros() -
finish
-
finish
public long finish() -
create
-
attribute
-
lowCardinalityAttribute
-
span
-
finishWithErrorStatus
public long finishWithErrorStatus() -
setErrorStatus
public void setErrorStatus() -
recordExceptionAndSetErrorStatus
-
recordException
-
isInternal
public boolean isInternal()
-