Class InstrumentSelector
java.lang.Object
io.opentelemetry.sdk.metrics.view.InstrumentSelector
Provides means for selecting one or more instruments. Used for configuring aggregations for the
specified instruments.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentSelector.Builderbuilder()Returns a newInstrumentSelector.BuilderforInstrumentSelector.Returns thePredicatefor filtering instruments by name.abstract InstrumentTypeReturnsInstrumentTypethat should be selected.abstract MeterSelectorReturns the selections criteria forMeters.
-
Constructor Details
-
InstrumentSelector
public InstrumentSelector()
-
-
Method Details
-
builder
Returns a newInstrumentSelector.BuilderforInstrumentSelector.- Returns:
- a new
InstrumentSelector.BuilderforInstrumentSelector.
-
getInstrumentType
ReturnsInstrumentTypethat should be selected. If null, then this specifier will not be used. -
getInstrumentNameFilter
Returns thePredicatefor filtering instruments by name. Matches everything by default. -
getMeterSelector
Returns the selections criteria forMeters.
-