Class TracerConfigurator

    • Field Detail

      • TRACE_ID_GEN_ENABLED

        public static final boolean TRACE_ID_GEN_ENABLED
    • Constructor Detail

      • TracerConfigurator

        public TracerConfigurator()
    • Method Detail

      • getTracer

        public abstract io.opentracing.Tracer getTracer()
      • 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 for
        env - current env
        Returns:
        the resolved value
      • envNameToSyspropName

        protected static String envNameToSyspropName​(String envName)
        In OTEL Java SDK there is a convention that the java property name for OTEL_FOO_BAR is otel.foo.bar
        Parameters:
        envName - the environmnet name to convert
        Returns:
        the corresponding sysprop name