Class InstrumentSelector.Builder
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.view.InstrumentSelector.Builder
-
- Enclosing class:
- InstrumentSelector
public abstract static class InstrumentSelector.Builder extends Object
Builder forInstrumentSelectorinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract InstrumentSelectorbuild()Returns an InstrumentSelector instance with the content of this builder.InstrumentSelector.BuildersetInstrumentNameRegex(String regex)Sets a specifier for selecting Instruments by name.abstract InstrumentSelector.BuildersetInstrumentType(InstrumentType instrumentType)Sets a specifier forInstrumentType.
-
-
-
Method Detail
-
setInstrumentType
public abstract InstrumentSelector.Builder setInstrumentType(InstrumentType instrumentType)
Sets a specifier forInstrumentType.
-
setInstrumentNameRegex
public final InstrumentSelector.Builder setInstrumentNameRegex(String regex)
Sets a specifier for selecting Instruments by name.
-
build
public abstract InstrumentSelector build()
Returns an InstrumentSelector instance with the content of this builder.
-
-