Class SdkTracerProviderUtil
java.lang.Object
io.opentelemetry.sdk.trace.internal.SdkTracerProviderUtil
A collection of methods that allow use of experimental features prior to availability in public
APIs.
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 void
addTracerConfiguratorCondition
(SdkTracerProviderBuilder sdkTracerProviderBuilder, Predicate<InstrumentationScopeInfo> scopeMatcher, TracerConfig tracerConfig) Reflectively add a tracer configurator condition to theSdkTracerProviderBuilder
.static void
setTracerConfigurator
(SdkTracerProviderBuilder sdkTracerProviderBuilder, ScopeConfigurator<TracerConfig> tracerConfigurator) Reflectively set theScopeConfigurator
to theSdkTracerProviderBuilder
.
-
Constructor Details
-
SdkTracerProviderUtil
private SdkTracerProviderUtil()
-
-
Method Details
-
setTracerConfigurator
public static void setTracerConfigurator(SdkTracerProviderBuilder sdkTracerProviderBuilder, ScopeConfigurator<TracerConfig> tracerConfigurator) Reflectively set theScopeConfigurator
to theSdkTracerProviderBuilder
. -
addTracerConfiguratorCondition
public static void addTracerConfiguratorCondition(SdkTracerProviderBuilder sdkTracerProviderBuilder, Predicate<InstrumentationScopeInfo> scopeMatcher, TracerConfig tracerConfig) Reflectively add a tracer configurator condition to theSdkTracerProviderBuilder
.
-