Class ThresholdRequestSpan
java.lang.Object
com.couchbase.client.core.cnc.tracing.ThresholdRequestSpan
- All Implemented Interfaces:
RequestSpan
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.RequestSpan
RequestSpan.StatusCode -
Method Summary
Modifier and TypeMethodDescriptionvoidSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.voidSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.voidSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.voidend()Completes this span.voidSets an event on the span, which is translated to the corresponding implementation specific event.voidrequestContext(RequestContext requestContext) Allows to set a request context to the request span.voidstatus(RequestSpan.StatusCode status) Sets the status of the span, which is by default UNSET.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.couchbase.client.core.cnc.RequestSpan
lowCardinalityAttribute, lowCardinalityAttribute, lowCardinalityAttribute, recordException
-
Method Details
-
attribute
Description copied from interface:RequestSpanSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attributein interfaceRequestSpan- Parameters:
key- the key of the attribute.value- the value of the attribute.
-
attribute
Description copied from interface:RequestSpanSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attributein interfaceRequestSpan- Parameters:
key- the key of the attribute.value- the value of the attribute.
-
attribute
Description copied from interface:RequestSpanSets a high-cardinality attribute on the span, which is translated to the corresponding implementation specific tag.Note that, depending on the implementation, attributes might be ignored.
- Specified by:
attributein interfaceRequestSpan- Parameters:
key- the key of the attribute.value- the value of the attribute.
-
event
Description copied from interface:RequestSpanSets an event on the span, which is translated to the corresponding implementation specific event.Note that, depending on the implementation, events might be ignored.
- Specified by:
eventin interfaceRequestSpan- Parameters:
name- the name of the eventtimestamp- the timestamp when it happened.
-
status
Description copied from interface:RequestSpanSets the status of the span, which is by default UNSET.Note that, depending on the implementation, this might be a no-op.
- Specified by:
statusin interfaceRequestSpan- Parameters:
status- the span's new status.
-
requestContext
Description copied from interface:RequestSpanAllows to set a request context to the request span.- Specified by:
requestContextin interfaceRequestSpan- Parameters:
requestContext- the request context, if present.
-
end
public void end()Description copied from interface:RequestSpanCompletes this span.- Specified by:
endin interfaceRequestSpan
-