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
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> SpanWrapperstatic SpanWrappercreate(RequestTracer tracer, String op, SpanWrapper parent) longlongfinish()longlongboolean<T> SpanWrapperlowCardinalityAttribute(String key, T value) voidrecordException(Throwable err) voidvoidspan()
-
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()
-