Class ConfigBuilder<T>
- java.lang.Object
-
- io.opentelemetry.sdk.common.export.ConfigBuilder<T>
-
- Type Parameters:
T
- the type of the implementation.
@Deprecated public abstract class ConfigBuilder<T> extends Object
Deprecated.Define an implementation ofSdkTracerProviderConfigurer
from the opentelemetry-sdk-extension-autoconfigure module to allow autoconfiguration of your type.Base class for all the config builder classes (SimpleSpanProcessor, BatchSpanProcessor, etc).The type parameter on this class should be set to the type of the implementation of this abstract class. For example, if your subclass is a Foo.Builder, then you would declare it as
Foo.Builder extends ConfigBuilder<Foo.Builder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ConfigBuilder.NamingConvention
Deprecated.
-
Constructor Summary
Constructors Constructor Description ConfigBuilder()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract T
fromConfigMap(Map<String,String> configMap, ConfigBuilder.NamingConvention namingConvention)
Deprecated.Sets the configuration values from the given configuration map for only the available keys.protected static Boolean
getBooleanProperty(String name, Map<String,String> map)
Deprecated.Get a boolean property from the map,null
if it cannot be found or it has a wrong type.protected static Double
getDoubleProperty(String name, Map<String,String> map)
Deprecated.Get a double property from the map,null
if it cannot be found or it has a wrong type.protected static Integer
getIntProperty(String name, Map<String,String> map)
Deprecated.Get an integer property from the map,null
if it cannot be found or it has a wrong type.protected static Long
getLongProperty(String name, Map<String,String> map)
Deprecated.Get a long property from the map,null
if it cannot be found or it has a wrong type.protected static String
getStringProperty(String name, Map<String,String> map)
Deprecated.Get aString
property from the map,null
if it cannot be found.T
readEnvironmentVariables()
Deprecated.Sets the configuration values from environment variables.T
readProperties(Properties properties)
Deprecated.Sets the configuration values from the givenProperties
object.T
readSystemProperties()
Deprecated.Sets the configuration values from system properties.
-
-
-
Method Detail
-
fromConfigMap
protected abstract T fromConfigMap(Map<String,String> configMap, ConfigBuilder.NamingConvention namingConvention)
Deprecated.Sets the configuration values from the given configuration map for only the available keys.
-
readProperties
public T readProperties(Properties properties)
Deprecated.Sets the configuration values from the givenProperties
object.
-
readEnvironmentVariables
public T readEnvironmentVariables()
Deprecated.Sets the configuration values from environment variables.
-
readSystemProperties
public T readSystemProperties()
Deprecated.Sets the configuration values from system properties.
-
getBooleanProperty
@Nullable protected static Boolean getBooleanProperty(String name, Map<String,String> map)
Deprecated.Get a boolean property from the map,null
if it cannot be found or it has a wrong type.- Parameters:
name
- The property namemap
- The map where to look for the property- Returns:
- the
Boolean
value of the property,null
in case of error or if the property cannot be found.
-
getIntProperty
@Nullable protected static Integer getIntProperty(String name, Map<String,String> map)
Deprecated.Get an integer property from the map,null
if it cannot be found or it has a wrong type.- Parameters:
name
- The property namemap
- The map where to look for the property- Returns:
- the
Integer
value of the property,null
in case of error or if the property cannot be found.
-
getLongProperty
@Nullable protected static Long getLongProperty(String name, Map<String,String> map)
Deprecated.Get a long property from the map,null
if it cannot be found or it has a wrong type.- Parameters:
name
- The property namemap
- The map where to look for the property- Returns:
- the
Long
value of the property,null
in case of error or if the property cannot be found.
-
getStringProperty
@Nullable protected static String getStringProperty(String name, Map<String,String> map)
Deprecated.Get aString
property from the map,null
if it cannot be found.- Parameters:
name
- The property namemap
- The map where to look for the property- Returns:
- the
String
value of the property,null
if the property cannot be found.
-
getDoubleProperty
@Nullable protected static Double getDoubleProperty(String name, Map<String,String> map)
Deprecated.Get a double property from the map,null
if it cannot be found or it has a wrong type.- Parameters:
name
- The property namemap
- The map where to look for the property- Returns:
- the
Double
value of the property,null
in case of error or if the property cannot be found.
-
-