Package io.opentelemetry.sdk.internal
Interface ScopeConfigurator<T>
- All Superinterfaces:
Function<InstrumentationScopeInfo,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ScopeConfigurator<T>
extends Function<InstrumentationScopeInfo,T>
A
ScopeConfigurator computes configuration for a given InstrumentationScopeInfo.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ScopeConfiguratorBuilder<T> builder()Create a new builder.default ScopeConfiguratorBuilder<T> Convert thisScopeConfiguratorto a builder.
-
Method Details
-
builder
Create a new builder. -
toBuilder
Convert thisScopeConfiguratorto a builder. Additional added matchers only apply whenFunction.apply(Object)returnsnull. If this configurator containsScopeConfiguratorBuilder.setDefault(Object), additional matchers are never applied.
-