public class NoopRequestTracer extends Object implements RequestTracer
| Modifier and Type | Field and Description |
|---|---|
static NoopRequestTracer |
INSTANCE
Returns the static instance of this tracer.
|
| Modifier and Type | Method and Description |
|---|---|
RequestSpan |
requestSpan(String operationName,
RequestSpan parent)
Creates a new request span with or without a parent.
|
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 static final NoopRequestTracer INSTANCE
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. "cb.get")parent - a parent, if no parent is used supply null.Copyright © 2021 Couchbase, Inc.. All rights reserved.