Class ConfigBuilder<T>

  • Type Parameters:
    T - the type of the implementation.

    @Deprecated
    public abstract class ConfigBuilder<T>
    extends Object
    Deprecated.
    Define an implementation of SdkTracerProviderConfigurer from the opentelemetry-sdk-extension-autoconfigure module to allow autoconfiguration of your type.
    Base class for all the config builder classes (SimpleSpanProcessor, BatchSpanProcessor, etc).

    The type parameter on this class should be set to the type of the implementation of this abstract class. For example, if your subclass is a Foo.Builder, then you would declare it as

    Foo.Builder extends ConfigBuilder<Foo.Builder>

    • Constructor Detail

      • ConfigBuilder

        public ConfigBuilder()
        Deprecated.
    • Method Detail

      • fromConfigMap

        protected abstract T fromConfigMap​(Map<String,​String> configMap,
                                           ConfigBuilder.NamingConvention namingConvention)
        Deprecated.
        Sets the configuration values from the given configuration map for only the available keys.
      • readProperties

        public T readProperties​(Properties properties)
        Deprecated.
        Sets the configuration values from the given Properties object.
      • readEnvironmentVariables

        public T readEnvironmentVariables()
        Deprecated.
        Sets the configuration values from environment variables.
      • readSystemProperties

        public T readSystemProperties()
        Deprecated.
        Sets the configuration values from system properties.
      • getBooleanProperty

        @Nullable
        protected static Boolean getBooleanProperty​(String name,
                                                    Map<String,​String> map)
        Deprecated.
        Get a boolean property from the map, null if it cannot be found or it has a wrong type.
        Parameters:
        name - The property name
        map - The map where to look for the property
        Returns:
        the Boolean value of the property, null in case of error or if the property cannot be found.
      • getIntProperty

        @Nullable
        protected static Integer getIntProperty​(String name,
                                                Map<String,​String> map)
        Deprecated.
        Get an integer property from the map, null if it cannot be found or it has a wrong type.
        Parameters:
        name - The property name
        map - The map where to look for the property
        Returns:
        the Integer value of the property, null in case of error or if the property cannot be found.
      • getLongProperty

        @Nullable
        protected static Long getLongProperty​(String name,
                                              Map<String,​String> map)
        Deprecated.
        Get a long property from the map, null if it cannot be found or it has a wrong type.
        Parameters:
        name - The property name
        map - The map where to look for the property
        Returns:
        the Long value of the property, null in case of error or if the property cannot be found.
      • getStringProperty

        @Nullable
        protected static String getStringProperty​(String name,
                                                  Map<String,​String> map)
        Deprecated.
        Get a String property from the map, null if it cannot be found.
        Parameters:
        name - The property name
        map - The map where to look for the property
        Returns:
        the String value of the property, null if the property cannot be found.
      • getDoubleProperty

        @Nullable
        protected static Double getDoubleProperty​(String name,
                                                  Map<String,​String> map)
        Deprecated.
        Get a double property from the map, null if it cannot be found or it has a wrong type.
        Parameters:
        name - The property name
        map - The map where to look for the property
        Returns:
        the Double value of the property, null in case of error or if the property cannot be found.