@Stability.Internal public class CbTracing extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getTracingId(ServiceType serviceType) |
static boolean |
isInternalSpan(RequestSpan span)
Returns true if the span is an internal one (noop or threshold) so that particular
optimizations can be applied.
|
static boolean |
isInternalTracer(RequestTracer tracer)
Returns true if the tracer is an internal one (noop or threshold) so that particular
optimizations can be applied.
|
static RequestSpan |
newSpan(CoreContext coreContext,
String spanName,
RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.
|
static RequestSpan |
newSpan(RequestTracer tracer,
String spanName,
RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.
|
static void |
setAttributes(RequestSpan span,
Map<String,?> attributes) |
public static boolean isInternalTracer(RequestTracer tracer)
tracer - the tracer to check.public static boolean isInternalSpan(RequestSpan span)
span - the span to check.public static RequestSpan newSpan(CoreContext coreContext, String spanName, RequestSpan parent)
parent - (nullable)public static RequestSpan newSpan(RequestTracer tracer, String spanName, RequestSpan parent)
parent - (nullable)public static void setAttributes(RequestSpan span, Map<String,?> attributes)
span - (nullable)attributes - (nullable)public static String getTracingId(ServiceType serviceType)
Copyright © 2024 Couchbase, Inc.. All rights reserved.