Package com.couchbase.client.core.cnc
Interface RequestTracer
- All Known Implementing Classes:
NoopRequestTracer
,ThresholdLoggingTracer
The
RequestTracer
describes the tracing abstraction in the SDK.
Various implementations exist, both as part of the core library but also as external modules that can be attached (i.e. for OpenTracing and OpenTelemetry). It is recommended to use those modules and not write your own tracer unless absolutely needed.
-
Method Summary
Modifier and TypeMethodDescriptionrequestSpan
(String name, RequestSpan parent) Creates a new request span with or without a parent.start()
Starts the tracer if it hasn't been started, might be a noop depending on the implementation.Stops the tracer if it has been started previously, might be a noop depending on the implementation.
-
Method Details
-
requestSpan
Creates a new request span with or without a parent.- 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
Starts the tracer if it hasn't been started, might be a noop depending on the implementation. -
stop
Stops the tracer if it has been started previously, might be a noop depending on the implementation.
-