Package io.opentelemetry.sdk.resources
Class ResourcesConfig.Builder
- java.lang.Object
-
- io.opentelemetry.sdk.common.export.ConfigBuilder<ResourcesConfig.Builder>
-
- io.opentelemetry.sdk.resources.ResourcesConfig.Builder
-
- Enclosing class:
- ResourcesConfig
public abstract static class ResourcesConfig.Builder extends ConfigBuilder<ResourcesConfig.Builder>
Builder forResourcesConfig
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opentelemetry.sdk.common.export.ConfigBuilder
ConfigBuilder.NamingConvention
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResourcesConfig
build()
Builds and returns aResourcesConfig
with the desired values.protected ResourcesConfig.Builder
fromConfigMap(Map<String,String> configMap, ConfigBuilder.NamingConvention namingConvention)
Sets the configuration values from the given configuration map for only the available keys.abstract ResourcesConfig.Builder
setDisabledResourceProviders(Set<String> disabledResourceProviders)
Sets the fully qualified class names ofResourceProvider
implementations that are found on the classpath but should be disabled.-
Methods inherited from class io.opentelemetry.sdk.common.export.ConfigBuilder
getBooleanProperty, getDoubleProperty, getIntProperty, getLongProperty, getStringProperty, readEnvironmentVariables, readProperties, readSystemProperties
-
-
-
-
Method Detail
-
fromConfigMap
protected ResourcesConfig.Builder fromConfigMap(Map<String,String> configMap, ConfigBuilder.NamingConvention namingConvention)
Sets the configuration values from the given configuration map for only the available keys.- Specified by:
fromConfigMap
in classConfigBuilder<ResourcesConfig.Builder>
- Parameters:
configMap
-Map
holding the configuration values.- Returns:
- this
-
setDisabledResourceProviders
public abstract ResourcesConfig.Builder setDisabledResourceProviders(Set<String> disabledResourceProviders)
Sets the fully qualified class names ofResourceProvider
implementations that are found on the classpath but should be disabled.- Parameters:
disabledResourceProviders
- the fully qualified class names ofResourceProvider
implementations that are found on the classpath but should be disabled.- Returns:
- this.
-
build
public ResourcesConfig build()
Builds and returns aResourcesConfig
with the desired values.- Returns:
- a
ResourcesConfig
with the desired values.
-
-