Package io.opentelemetry.sdk.metrics
Class InstrumentSelector
java.lang.Object
io.opentelemetry.sdk.metrics.InstrumentSelector
Provides means for selecting one or more instruments. Used for configuring aggregations for the
specified instruments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstrumentSelectorBuilderbuilder()Returns a newInstrumentSelectorBuilderforInstrumentSelector.abstract StringReturns the selection criteria for instrument name.abstract InstrumentTypeReturns selection criteria forInstrumentType.abstract StringReturns the selection criteria for meter name.abstract StringReturns the selection criteria for meter schema url.abstract StringReturns the selection criteria for meter version.
-
Method Details
-
builder
Returns a newInstrumentSelectorBuilderforInstrumentSelector. -
getInstrumentType
Returns selection criteria forInstrumentType. If null, select instruments with any type. -
getInstrumentName
Returns the selection criteria for instrument name. If null, select instruments with any name.Instrument name may contain the wildcard characters
*and?with the following matching criteria:*matches 0 or more instances of any character?matches exactly one instance of any character
-
getMeterName
Returns the selection criteria for meter name. If null, select instruments from meters with any name. -
getMeterVersion
Returns the selection criteria for meter version. If null, select instruments from meters with any version. -
getMeterSchemaUrl
Returns the selection criteria for meter schema url. If null, select instruments from meters with any schema url.
-