Package io.opentelemetry.android
Class SdkPreconfiguredRumBuilder
-
- All Implemented Interfaces:
public final class SdkPreconfiguredRumBuilder
-
-
Method Summary
Modifier and Type Method Description final SdkPreconfiguredRumBuilderaddInstrumentation(AndroidInstrumentation instrumentation)Adds an instrumentation to be applied as a part of the build method call. final SdkPreconfiguredRumBuildersetShutdownHook(Runnable onShutdown)Call this to provide a shutdown hook that will be called when the OpenTelemetryRum instance is shut down. final OpenTelemetryRumbuild()Creates a new instance of io.opentelemetry.android.OpenTelemetryRum with the settings of this [ ]. -
-
Method Detail
-
addInstrumentation
final SdkPreconfiguredRumBuilder addInstrumentation(AndroidInstrumentation instrumentation)
Adds an instrumentation to be applied as a part of the build method call.
- Returns:
this
-
setShutdownHook
final SdkPreconfiguredRumBuilder setShutdownHook(Runnable onShutdown)
Call this to provide a shutdown hook that will be called when the OpenTelemetryRum instance is shut down.
-
build
final OpenTelemetryRum build()
Creates a new instance of io.opentelemetry.android.OpenTelemetryRum with the settings of this [ ].
This method uses a preconfigured OpenTelemetry SDK and install built-in system instrumentations in the passed-in Android Context.
- Returns:
A new io.opentelemetry.android.OpenTelemetryRum instance.
-
-
-
-