Package com.couchbase.client.core.env
Class RequestTracerDecorator
java.lang.Object
com.couchbase.client.core.env.RequestTracerDecorator
- All Implemented Interfaces:
RequestTracer
Wraps a
RequestTracer to provide new attributes.-
Constructor Summary
ConstructorsConstructorDescriptionRequestTracerDecorator(RequestTracer wrapped, Supplier<ClusterIdentifier> clusterIdentSupplier) -
Method Summary
Modifier and TypeMethodDescriptionrequestSpan(String name, RequestSpan parent) Creates a new request span with or without a parent.reactor.core.publisher.Mono<Void> start()Starts the tracer if it hasn't been started, might be a noop depending on the implementation.reactor.core.publisher.Mono<Void> Stops the tracer if it has been started previously, might be a noop depending on the implementation.toString()
-
Constructor Details
-
RequestTracerDecorator
public RequestTracerDecorator(RequestTracer wrapped, Supplier<ClusterIdentifier> clusterIdentSupplier)
-
-
Method Details
-
requestSpan
Description copied from interface:RequestTracerCreates a new request span with or without a parent.- Specified by:
requestSpanin interfaceRequestTracer- Parameters:
name- the name of the toplevel operation (i.e. "cb.get")parent- a parent, if no parent is used supply null.- Returns:
- a request span that wraps the actual tracer implementation span.
-
start
Description copied from interface:RequestTracerStarts the tracer if it hasn't been started, might be a noop depending on the implementation.- Specified by:
startin interfaceRequestTracer
-
stop
Description copied from interface:RequestTracerStops the tracer if it has been started previously, might be a noop depending on the implementation.- Specified by:
stopin interfaceRequestTracer
-
toString
-