Package org.apache.solr.util.tracing
Class TraceUtils
- java.lang.Object
-
- org.apache.solr.util.tracing.TraceUtils
-
public class TraceUtils extends Object
Utilities for distributed tracing.
-
-
Field Summary
Fields Modifier and Type Field Description static Predicate<io.opentracing.Span>
DEFAULT_IS_RECORDING
static Predicate<io.opentracing.Span>
IS_RECORDING
this should only be changed in the context of testing, otherwise it would risk not recording trace data.
-
Constructor Summary
Constructors Constructor Description TraceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ifNotNoop(io.opentracing.Span span, Consumer<io.opentracing.Span> consumer)
static void
setDbInstance(SolrQueryRequest req, String coreOrColl)
static void
setOperations(SolrQueryRequest req, String clazz, List<String> ops)
-
-
-
Method Detail
-
setDbInstance
public static void setDbInstance(SolrQueryRequest req, String coreOrColl)
-
ifNotNoop
public static void ifNotNoop(io.opentracing.Span span, Consumer<io.opentracing.Span> consumer)
-
setOperations
public static void setOperations(SolrQueryRequest req, String clazz, List<String> ops)
-
-