public class NoopRequestTracer extends Object implements RequestTracer
DISPATCH_SPAN_NAME, PAYLOAD_ENCODING_SPAN_NAME, SERVICE_IDENTIFIER_ANALYTICS, SERVICE_IDENTIFIER_KV, SERVICE_IDENTIFIER_QUERY, SERVICE_IDENTIFIER_SEARCH, SERVICE_IDENTIFIER_VIEW| Constructor and Description |
|---|
NoopRequestTracer() |
| Modifier and Type | Method and Description |
|---|---|
InternalSpan |
internalSpan(String operationName,
RequestSpan parent)
Creates a new span that represents a full request/response lifecycle in the SDK.
|
RequestSpan |
requestSpan(String operationName,
RequestSpan parent)
Creates a new span that is created from the underlying tracer.
|
Mono<Void> |
start()
Starts the tracer if it hasn't been started, might be a noop depending on the implementation.
|
Mono<Void> |
stop(Duration timeout)
Stops the tracer if it has been started previously, might be a noop depending on the implementation.
|
public InternalSpan internalSpan(String operationName, RequestSpan parent)
RequestTracerinternalSpan in interface RequestTraceroperationName - the name of the toplevel operation (i.e. "get")parent - the parent, can be null.public Mono<Void> start()
RequestTracerstart in interface RequestTracerpublic Mono<Void> stop(Duration timeout)
RequestTracerstop in interface RequestTracerpublic RequestSpan requestSpan(String operationName, RequestSpan parent)
RequestTracerrequestSpan in interface RequestTraceroperationName - the name of the toplevel operation (i.e. "get")parent - a possible parent.Copyright © 2020 Couchbase, Inc.. All rights reserved.