@Stability.Internal public class SpanWrapper extends Object
Constructor and Description |
---|
SpanWrapper(RequestSpan span) |
Modifier and Type | Method and 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() |
<T> SpanWrapper |
lowCardinalityAttribute(String key,
T value) |
void |
recordException(Throwable err) |
void |
recordExceptionAndSetErrorStatus(Throwable err) |
void |
setErrorStatus() |
RequestSpan |
span() |
public SpanWrapper(RequestSpan span)
public long elapsedMicros()
public long finish()
public static SpanWrapper create(RequestTracer tracer, String op, @Nullable SpanWrapper parent)
public <T> SpanWrapper attribute(String key, T value)
public <T> SpanWrapper lowCardinalityAttribute(String key, T value)
public RequestSpan span()
public long finishWithErrorStatus()
public void setErrorStatus()
public void recordExceptionAndSetErrorStatus(Throwable err)
public void recordException(Throwable err)
public boolean isInternal()
Copyright © 2024 Couchbase, Inc.. All rights reserved.