Class ConfigBuilder
java.lang.Object
io.opentelemetry.instrumentation.api.config.ConfigBuilder
A builder of a
Config.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.This method will be made package-private in the next release. -
Method Summary
Modifier and TypeMethodDescriptionAdds environment variables, converted to Java property naming convention, to the config.addProperties(Map<String, String> properties) Adds all properties from the passedpropertiesto the config.addProperties(Properties properties) Adds all properties from the passedpropertiesto the config.addProperty(String name, String value) Adds a single property named to the config.Adds system properties to the config.build()Deprecated.UseaddEnvironmentVariables()instead.readProperties(Map<String, String> properties) Deprecated.UseaddProperties(Map)instead.readProperties(Properties properties) Deprecated.UseaddProperties(Properties)instead.Deprecated.UseaddSystemProperties()instead.
-
Constructor Details
-
ConfigBuilder
Deprecated.This method will be made package-private in the next release. UseConfig.builder()instead.Constructs a newConfigBuilder.
-
-
Method Details
-
addProperty
Adds a single property named to the config. -
readProperties
Deprecated.UseaddProperties(Properties)instead.Adds all properties from the passedpropertiesto the config. -
readProperties
Deprecated.UseaddProperties(Map)instead.Adds all properties from the passedpropertiesto the config. -
addProperties
Adds all properties from the passedpropertiesto the config. -
addProperties
Adds all properties from the passedpropertiesto the config. -
readEnvironmentVariables
Deprecated.UseaddEnvironmentVariables()instead.Adds environment variables, converted to Java property naming convention, to the config.Environment variable names are lowercased, and the underscores are replaced by dots.
-
addEnvironmentVariables
Adds environment variables, converted to Java property naming convention, to the config.Environment variable names are lowercased, and the underscores are replaced by dots.
-
readSystemProperties
Deprecated.UseaddSystemProperties()instead.Adds system properties to the config. -
addSystemProperties
Adds system properties to the config. -
build
-