Package org.apache.solr.core
Class TracerConfigurator
- java.lang.Object
-
- org.apache.solr.core.TracerConfigurator
-
- All Implemented Interfaces:
NamedListInitializedPlugin
public abstract class TracerConfigurator extends Object implements NamedListInitializedPlugin
Produces an OpenTracingTracerfrom configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanTRACE_ID_GEN_ENABLED
-
Constructor Summary
Constructors Constructor Description TracerConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static StringenvNameToSyspropName(String envName)In OTEL Java SDK there is a convention that the java property name for OTEL_FOO_BAR is otel.foo.barprotected static StringgetConfig(String envName, Map<String,String> env)Returns system property if found, else returns environment variable, or null if none found.abstract io.opentracing.TracergetTracer()static io.opentracing.TracerloadTracer(SolrResourceLoader loader, PluginInfo info)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
-
-
-
Method Detail
-
getTracer
public abstract io.opentracing.Tracer getTracer()
-
loadTracer
public static io.opentracing.Tracer loadTracer(SolrResourceLoader loader, PluginInfo info)
-
getConfig
protected static String getConfig(String envName, Map<String,String> env)
Returns system property if found, else returns environment variable, or null if none found.- Parameters:
envName- the environment variable to look forenv- current env- Returns:
- the resolved value
-
-