Package io.opentelemetry.sdk.metrics
Class InstrumentSelectorBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder
Builder for
InstrumentSelector.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns an InstrumentSelector instance with the content of this builder.setMeterName(String meterName) Sets a specifier for selecting instruments by the name of their associatedMeter.setMeterSchemaUrl(String meterSchemaUrl) Sets a specifier for selecting instruments by the schema URL of their associatedMeter.setMeterVersion(String meterVersion) Sets a specifier for selecting instruments by the version of their associatedMeter.Sets the exact instrument name that will be selected.setType(InstrumentType instrumentType) Sets a specifier forInstrumentType.
-
Method Details
-
setType
Sets a specifier forInstrumentType. -
setName
Sets the exact instrument name that will be selected.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
-
setMeterName
Sets a specifier for selecting instruments by the name of their associatedMeter. -
setMeterVersion
Sets a specifier for selecting instruments by the version of their associatedMeter. -
setMeterSchemaUrl
Sets a specifier for selecting instruments by the schema URL of their associatedMeter. -
build
Returns an InstrumentSelector instance with the content of this builder.
-