@Immutable
public abstract class ResourcesConfig
extends java.lang.Object
Configuration options for ResourcesConfig
can be read from system properties,
environment variables, or Properties
objects.
For system properties and Properties
objects, ResourcesConfig
will look for
the following names:
otel.java.disabled.resource_providers
: to set the fully qualified class names of
ResourceProvider
implementations that are found on the classpath but should be
disabled.
For environment variables, ResourcesConfig
will look for the following names:
OTEL_JAVA_DISABLED_RESOURCES_PROVIDERS
: to set the fully qualified class names of
ResourceProvider
implementations that are found on the classpath but should be
disabled.
Modifier and Type | Class and Description |
---|---|
static class |
ResourcesConfig.Builder
Builder for
ResourcesConfig . |
Constructor and Description |
---|
ResourcesConfig() |
Modifier and Type | Method and Description |
---|---|
static ResourcesConfig |
getDefault()
Returns the default
ResourcesConfig . |
abstract java.util.Set<java.lang.String> |
getDisabledResourceProviders()
Returns the fully qualified class names of
ResourceProvider implementations that are
found on the classpath but should be disabled. |
static ResourcesConfig.Builder |
newBuilder()
Returns a new
ResourcesConfig.Builder . |
abstract ResourcesConfig.Builder |
toBuilder()
Returns a
ResourcesConfig.Builder initialized to the same property values as the current instance. |
public static ResourcesConfig getDefault()
ResourcesConfig
.ResourcesConfig
.public abstract java.util.Set<java.lang.String> getDisabledResourceProviders()
ResourceProvider
implementations that are
found on the classpath but should be disabled.ResourceProvider
implementations that are
found on the classpath but should be disabled.public static ResourcesConfig.Builder newBuilder()
ResourcesConfig.Builder
.ResourcesConfig.Builder
.public abstract ResourcesConfig.Builder toBuilder()
ResourcesConfig.Builder
initialized to the same property values as the current instance.ResourcesConfig.Builder
initialized to the same property values as the current instance.