Package com.couchbase.client.core.cnc
Class CbTracing
- java.lang.Object
-
- com.couchbase.client.core.cnc.CbTracing
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getTracingId(ServiceType serviceType)
static RequestSpan
newSpan(RequestTracer tracer, String spanName, RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.static RequestSpan
newSpan(CoreContext coreContext, String spanName, RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.
-
-
-
Method Detail
-
newSpan
public static RequestSpan newSpan(CoreContext coreContext, String spanName, RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.- Parameters:
parent
- (nullable)
-
newSpan
public static RequestSpan newSpan(RequestTracer tracer, String spanName, RequestSpan parent)
Returns a new span with the `db.system` attribute set to `couchbase`.- Parameters:
parent
- (nullable)
-
getTracingId
public static String getTracingId(ServiceType serviceType)
-
-