public class ThresholdRequestTracer extends Object implements RequestTracer
| Modifier and Type | Class and Description |
|---|---|
static class |
ThresholdRequestTracer.Builder
The builder used to configure the
ThresholdRequestTracer. |
| Modifier and Type | Method and Description |
|---|---|
static ThresholdRequestTracer.Builder |
builder(EventBus eventBus)
Deprecated.
please use
create(EventBus, ThresholdRequestTracerConfig) instead. |
static ThresholdRequestTracer |
create(EventBus eventBus)
Short-hand to create the tracer with the event bus that needs to be used.
|
static ThresholdRequestTracer |
create(EventBus eventBus,
ThresholdRequestTracerConfig config)
Creates a tracer with config and a reference to the event bus.
|
RequestSpan |
requestSpan(String name,
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 ThresholdRequestTracer.Builder builder(EventBus eventBus)
create(EventBus, ThresholdRequestTracerConfig) instead.eventBus - the event bus where the final events will be emitted into.public static ThresholdRequestTracer create(EventBus eventBus)
eventBus - the event bus where the final events will be emitted into.public static ThresholdRequestTracer create(EventBus eventBus, ThresholdRequestTracerConfig config)
eventBus - the event bus where the final events will be emitted into.config - the config that should be used.public RequestSpan requestSpan(String name, RequestSpan parent)
RequestTracerrequestSpan in interface RequestTracername - the name of the toplevel operation (i.e. "cb.get")parent - a parent, if no parent is used supply null.public Mono<Void> start()
RequestTracerstart in interface RequestTracerpublic Mono<Void> stop(Duration timeout)
RequestTracerstop in interface RequestTracerCopyright © 2021 Couchbase, Inc.. All rights reserved.