public class NoopInternalSpan extends Object implements InternalSpan
Modifier and Type | Field and Description |
---|---|
static NoopInternalSpan |
INSTANCE |
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 static NoopInternalSpan INSTANCE
public void finish()
InternalSpan
finish
in interface InternalSpan
public void requestContext(RequestContext ctx)
InternalSpan
requestContext
in interface InternalSpan
ctx
- the request context once available.public RequestContext requestContext()
InternalSpan
requestContext
in interface InternalSpan
public void startDispatch()
InternalSpan
startDispatch
in interface InternalSpan
public void stopDispatch()
InternalSpan
stopDispatch
in interface InternalSpan
public void startPayloadEncoding()
InternalSpan
startPayloadEncoding
in interface InternalSpan
public void stopPayloadEncoding()
InternalSpan
stopPayloadEncoding
in interface InternalSpan
public RequestSpan toRequestSpan()
InternalSpan
toRequestSpan
in interface InternalSpan
Copyright © 2020 Couchbase, Inc.. All rights reserved.