Class OpenTelemetrySdkAutoConfiguration
java.lang.Object
io.opentelemetry.sdk.autoconfigure.OpenTelemetrySdkAutoConfiguration
Deprecated.
Auto-configuration for the OpenTelemetry SDK. As an alternative to programmatically configuring
the SDK using
OpenTelemetrySdk.builder(), this package can be used to automatically
configure the SDK using environment properties specified by OpenTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.OpenTelemetrySdkDeprecated.static io.opentelemetry.sdk.OpenTelemetrySdkinitialize(boolean setResultAsGlobal) Deprecated.UseAutoConfiguredSdk.builder().setResultAsGlobal(setResultAsGlobal).build().getOpenTelemetrySdk().static io.opentelemetry.sdk.OpenTelemetrySdkinitialize(boolean setResultAsGlobal, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) Deprecated.UseAutoConfiguredSdk.builder().setResultAsGlobal(setResultAsGlobal).setConfig(config).build().getOpenTelemetrySdk().
-
Method Details
-
initialize
Deprecated.Returns anOpenTelemetrySdkautomatically initialized through recognized system properties and environment variables.This will automatically set the resulting SDK as the
GlobalOpenTelemetryinstance. -
initialize
@Deprecated public static io.opentelemetry.sdk.OpenTelemetrySdk initialize(boolean setResultAsGlobal) Deprecated.UseAutoConfiguredSdk.builder().setResultAsGlobal(setResultAsGlobal).build().getOpenTelemetrySdk().Returns anOpenTelemetrySdkautomatically initialized through recognized system properties and environment variables.- Parameters:
setResultAsGlobal- Whether to automatically set the configured SDK as theGlobalOpenTelemetryinstance.
-
initialize
@Deprecated public static io.opentelemetry.sdk.OpenTelemetrySdk initialize(boolean setResultAsGlobal, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config) Deprecated.UseAutoConfiguredSdk.builder().setResultAsGlobal(setResultAsGlobal).setConfig(config).build().getOpenTelemetrySdk().Returns anOpenTelemetrySdkautomatically initialized through recognized properties contained in theconfigparameter.- Parameters:
setResultAsGlobal- Whether to automatically set the configured SDK as theGlobalOpenTelemetryinstance.config- AConfigPropertiesinstance that contains properties that are to be used to auto-configure the returnedOpenTelemetrySdk.
-
AutoConfiguredOpenTelemetrySdk.