Class AutoConfigureUtil
java.lang.Object
io.opentelemetry.sdk.autoconfigure.internal.AutoConfigureUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigProperties
getConfig
(AutoConfiguredOpenTelemetrySdk autoConfiguredOpenTelemetrySdk) Returns theConfigProperties
used for auto-configuration.static StructuredConfigProperties
getStructuredConfig
(AutoConfiguredOpenTelemetrySdk autoConfiguredOpenTelemetrySdk) Returns theStructuredConfigProperties
used for auto-configuration when file based configuration is used.setComponentLoader
(AutoConfiguredOpenTelemetrySdkBuilder builder, ComponentLoader componentLoader) Sets theComponentLoader
to be used in the auto-configuration process.setConfigPropertiesCustomizer
(AutoConfiguredOpenTelemetrySdkBuilder builder, Function<ConfigProperties, ConfigProperties> customizer) Sets theConfigProperties
customizer to be used in the auto-configuration process.
-
Constructor Details
-
AutoConfigureUtil
private AutoConfigureUtil()
-
-
Method Details
-
getConfig
@Nullable public static ConfigProperties getConfig(AutoConfiguredOpenTelemetrySdk autoConfiguredOpenTelemetrySdk) Returns theConfigProperties
used for auto-configuration.- Returns:
- the config properties, or
null
if file based configuration is used
-
getStructuredConfig
@Nullable public static StructuredConfigProperties getStructuredConfig(AutoConfiguredOpenTelemetrySdk autoConfiguredOpenTelemetrySdk) Returns theStructuredConfigProperties
used for auto-configuration when file based configuration is used.- Returns:
- the config properties, or
null
if file based configuration is NOT used
-
setComponentLoader
public static AutoConfiguredOpenTelemetrySdkBuilder setComponentLoader(AutoConfiguredOpenTelemetrySdkBuilder builder, ComponentLoader componentLoader) Sets theComponentLoader
to be used in the auto-configuration process. -
setConfigPropertiesCustomizer
public static AutoConfiguredOpenTelemetrySdkBuilder setConfigPropertiesCustomizer(AutoConfiguredOpenTelemetrySdkBuilder builder, Function<ConfigProperties, ConfigProperties> customizer) Sets theConfigProperties
customizer to be used in the auto-configuration process.
-