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()
RequestTracer
start
in interface RequestTracer
public Mono<Void> stop(Duration timeout)
RequestTracer
stop
in interface RequestTracer
public RequestSpan requestSpan(String operationName, RequestSpan parent)
RequestTracer
requestSpan
in interface RequestTracer
operationName
- 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.