Class ConfigPropertiesUtil
java.lang.Object
io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil
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 TypeMethodDescriptionstatic BooleangetBoolean(String propertyName) Deprecated.Returns the boolean value of the given property name from system properties and environment variables.static booleangetBoolean(String propertyName, boolean defaultValue) Deprecated.Returns the boolean value of the given property name from system properties and environment variables.static intDeprecated.Returns the int value of the given property name from system properties and environment variables.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 StringDeprecated.Returns the string value of the given property name from system properties and environment variables.static StringDeprecated.Returns the string value of the given property name from system properties and environment variables, or the default value if not found.
-
Method Details
-
getBoolean
Deprecated.Returns the boolean value of the given property name from system properties and environment variables.It's recommended to use
ConfigProviderinstead to support Declarative Config. -
getBoolean
Deprecated.Returns the boolean value of the given property name from system properties and environment variables.It's recommended to use
ConfigProviderinstead to support Declarative Config. -
getInt
Deprecated.Returns the int value of the given property name from system properties and environment variables.It's recommended to use
ConfigProviderinstead to support Declarative Config. -
getString
Deprecated.Returns the string value of the given property name from system properties and environment variables.It's recommended to use
ConfigProviderinstead to support Declarative Config. -
getString
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
ConfigProviderinstead to support Declarative Config. -
getList
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
ConfigProviderinstead to support Declarative Config.
-