Class ConfigPropertiesUtil

java.lang.Object
io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil

@Deprecated public final class ConfigPropertiesUtil extends Object
Deprecated.
allows library configuration via system properties and environment variables, which will be removed in 3.0.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Boolean
    getBoolean(String propertyName)
    Deprecated.
    Returns the boolean value of the given property name from system properties and environment variables.
    static boolean
    getBoolean(String propertyName, boolean defaultValue)
    Deprecated.
    Returns the boolean value of the given property name from system properties and environment variables.
    static int
    getInt(String propertyName, int defaultValue)
    Deprecated.
    Returns the int value of the given property name from system properties and environment variables.
    static List<String>
    getList(String propertyName, List<String> defaultValue)
    Deprecated.
    Returns the list of strings value of the given property name from system properties and environment variables, or the default value if not found.
    static String
    getString(String propertyName)
    Deprecated.
    Returns the string value of the given property name from system properties and environment variables.
    static String
    getString(String propertyName, String defaultValue)
    Deprecated.
    Returns the string value of the given property name from system properties and environment variables, or the default value if not found.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getBoolean

      public static boolean getBoolean(String propertyName, boolean defaultValue)
      Deprecated.
      Returns the boolean value of the given property name from system properties and environment variables.

      It's recommended to use ConfigProvider instead to support Declarative Config.

    • getBoolean

      @Nullable public static Boolean getBoolean(String propertyName)
      Deprecated.
      Returns the boolean value of the given property name from system properties and environment variables.

      It's recommended to use ConfigProvider instead to support Declarative Config.

    • getInt

      public static int getInt(String propertyName, int defaultValue)
      Deprecated.
      Returns the int value of the given property name from system properties and environment variables.

      It's recommended to use ConfigProvider instead to support Declarative Config.

    • getString

      @Nullable public static String getString(String propertyName)
      Deprecated.
      Returns the string value of the given property name from system properties and environment variables.

      It's recommended to use ConfigProvider instead to support Declarative Config.

    • getString

      public static String getString(String propertyName, String defaultValue)
      Deprecated.
      Returns the string value of the given property name from system properties and environment variables, or the default value if not found.

      It's recommended to use ConfigProvider instead to support Declarative Config.

    • getList

      public static List<String> getList(String propertyName, List<String> defaultValue)
      Deprecated.
      Returns the list of strings value of the given property name from system properties and environment variables, or the default value if not found. The property value is expected to be a comma-separated list.

      It's recommended to use ConfigProvider instead to support Declarative Config.