Package com.couchbase.client.core.cnc
Class CbTracing
java.lang.Object
com.couchbase.client.core.cnc.CbTracing
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetTracingId(ServiceType serviceType) static booleanisInternalSpan(RequestSpan span) Returns true if the span is an internal one (noop or threshold) so that particular optimizations can be applied.static booleanisInternalTracer(RequestTracer tracer) Returns true if the tracer is an internal one (noop or threshold) so that particular optimizations can be applied.static RequestSpannewSpan(RequestTracer tracer, String spanName, RequestSpan parent) Returns a new span with the `db.system` attribute set to `couchbase`.static RequestSpannewSpan(CoreContext coreContext, String spanName, RequestSpan parent) Returns a new span with the `db.system` attribute set to `couchbase`.static voidsetAttributes(RequestSpan span, Map<String, ?> attributes)
-
Method Details
-
isInternalTracer
Returns true if the tracer is an internal one (noop or threshold) so that particular optimizations can be applied.- Parameters:
tracer- the tracer to check.- Returns:
- true if internal, false otherwise.
-
isInternalSpan
Returns true if the span is an internal one (noop or threshold) so that particular optimizations can be applied.- Parameters:
span- the span to check.- Returns:
- true if internal, false otherwise.
-
newSpan
Returns a new span with the `db.system` attribute set to `couchbase`.- Parameters:
parent- (nullable)
-
newSpan
Returns a new span with the `db.system` attribute set to `couchbase`.- Parameters:
parent- (nullable)
-
setAttributes
- Parameters:
span- (nullable)attributes- (nullable)
-
getTracingId
-