Class ConfigBuilder
java.lang.Object
io.opentelemetry.instrumentation.api.config.ConfigBuilder
A builder of a
Config.-
Method Summary
Modifier and TypeMethodDescriptionAdds environment variables (converted to the Java property naming convention) to the config.addProperties(Map<String, String> properties) Adds all properties from the passedMapto the config.addProperties(Properties properties) Adds all properties from the passedPropertiesto the config.addProperty(String name, String value) Adds a single property to the config.Adds system properties to the config.build()
-
Method Details
-
addProperty
Adds a single property to the config. -
addProperties
Adds all properties from the passedPropertiesto the config. -
addProperties
Adds all properties from the passedMapto the config. -
addEnvironmentVariables
Adds environment variables (converted to the Java property naming convention) to the config.Environment variable names are converted to lower case, with all underscores replaced by dots.
-
addSystemProperties
Adds system properties to the config. -
build
-