public class ThresholdInternalSpan extends Object implements InternalSpan
ThresholdRequestTracer.
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.
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finishes the overall request span (does not touch or change any sub-spans).
|
RequestContext |
requestContext()
Returns the request context so it can be accessed once set, usually by the tracer implementation.
|
void |
requestContext(RequestContext ctx)
Called by the system once the request is created and gives the span a chance to look into request specific
information.
|
void |
startDispatch()
Signals the start of the IO network dispatch phase for this request.
|
void |
startPayloadEncoding()
Signals the start of payload encoding, if needed for this request.
|
void |
stopDispatch()
Signals the end of the IO network dispatch phase for this request.
|
void |
stopPayloadEncoding()
Signals the end of payload encoding, if needed for this request.
|
RequestSpan |
toRequestSpan()
Returns a request span that wraps the internal span.
|
public void finish()
InternalSpanfinish in interface InternalSpanpublic void requestContext(RequestContext ctx)
InternalSpanrequestContext in interface InternalSpanctx - the request context once available.public RequestContext requestContext()
InternalSpanrequestContext in interface InternalSpanpublic void startDispatch()
InternalSpanstartDispatch in interface InternalSpanpublic void stopDispatch()
InternalSpanstopDispatch in interface InternalSpanpublic void startPayloadEncoding()
InternalSpanstartPayloadEncoding in interface InternalSpanpublic void stopPayloadEncoding()
InternalSpanstopPayloadEncoding in interface InternalSpanpublic RequestSpan toRequestSpan()
InternalSpantoRequestSpan in interface InternalSpanCopyright © 2020 Couchbase, Inc.. All rights reserved.