Class ThresholdRequestSpan
java.lang.Object
com.couchbase.client.core.cnc.tracing.ThresholdRequestSpan
- All Implemented Interfaces:
RequestSpan
public class ThresholdRequestSpan extends Object implements RequestSpan
-
Method Summary
Modifier and Type Method Description voidaddEvent(String name, Instant timestamp)Sets an event on the span, which is translated to the corresponding implementation specific event.voidend()Completes this span.voidrequestContext(RequestContext requestContext)Allows to set a request context to the request span.voidsetAttribute(String key, String value)Sets an attribute on the span, which is translated to the corresponding implementation specific tag.
-
Method Details
-
setAttribute
Description copied from interface:RequestSpanSets an 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:
setAttributein interfaceRequestSpan- Parameters:
key- the key of the attribute.value- the value of the attribute.
-
addEvent
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:
addEventin interfaceRequestSpan- Parameters:
name- the name of the eventtimestamp- the timestamp when it happened.
-
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
-