Class ThresholdInternalSpan
- java.lang.Object
-
- com.couchbase.client.core.cnc.tracing.ThresholdInternalSpan
-
- All Implemented Interfaces:
InternalSpan
public class ThresholdInternalSpan extends Object implements InternalSpan
Provides the basic span implementation for theThresholdRequestTracer.Most of these span methods are stubs since all the threshold tracer cares about is when the operation is complete if it is over threshold.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Finishes the overall request span (does not touch or change any sub-spans).RequestContextrequestContext()Returns the request context so it can be accessed once set, usually by the tracer implementation.voidrequestContext(RequestContext ctx)Called by the system once the request is created and gives the span a chance to look into request specific information.voidstartDispatch()Signals the start of the IO network dispatch phase for this request.voidstartPayloadEncoding()Signals the start of payload encoding, if needed for this request.voidstopDispatch()Signals the end of the IO network dispatch phase for this request.voidstopPayloadEncoding()Signals the end of payload encoding, if needed for this request.RequestSpantoRequestSpan()Returns a request span that wraps the internal span.
-
-
-
Method Detail
-
finish
public void finish()
Description copied from interface:InternalSpanFinishes the overall request span (does not touch or change any sub-spans).- Specified by:
finishin interfaceInternalSpan
-
requestContext
public void requestContext(RequestContext ctx)
Description copied from interface:InternalSpanCalled by the system once the request is created and gives the span a chance to look into request specific information.- Specified by:
requestContextin interfaceInternalSpan- Parameters:
ctx- the request context once available.
-
requestContext
public RequestContext requestContext()
Description copied from interface:InternalSpanReturns the request context so it can be accessed once set, usually by the tracer implementation.- Specified by:
requestContextin interfaceInternalSpan
-
startDispatch
public void startDispatch()
Description copied from interface:InternalSpanSignals the start of the IO network dispatch phase for this request.- Specified by:
startDispatchin interfaceInternalSpan
-
stopDispatch
public void stopDispatch()
Description copied from interface:InternalSpanSignals the end of the IO network dispatch phase for this request.- Specified by:
stopDispatchin interfaceInternalSpan
-
startPayloadEncoding
public void startPayloadEncoding()
Description copied from interface:InternalSpanSignals the start of payload encoding, if needed for this request.- Specified by:
startPayloadEncodingin interfaceInternalSpan
-
stopPayloadEncoding
public void stopPayloadEncoding()
Description copied from interface:InternalSpanSignals the end of payload encoding, if needed for this request.- Specified by:
stopPayloadEncodingin interfaceInternalSpan
-
toRequestSpan
public RequestSpan toRequestSpan()
Description copied from interface:InternalSpanReturns a request span that wraps the internal span.- Specified by:
toRequestSpanin interfaceInternalSpan
-
-