Package io.opentelemetry.sdk.metrics
Class InstrumentSelectorBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder
Builder for
InstrumentSelector
.- Since:
- 1.14.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns anInstrumentSelector
with the configuration of this builder.setMeterName
(String meterName) Select instruments associated with the givenmeterName
.setMeterSchemaUrl
(String meterSchemaUrl) Select instruments associated with the givenmeterSchemaUrl
.setMeterVersion
(String meterVersion) Select instruments associated with the givenmeterVersion
.Select instruments with the givenname
.setType
(InstrumentType instrumentType) Select instruments with the giveninstrumentType
.Select instruments with the givenunit
.
-
Method Details
-
setType
Select instruments with the giveninstrumentType
. -
setName
Select instruments with the givenname
.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
-
setUnit
Select instruments with the givenunit
.- Since:
- 1.24.0
-
setMeterName
Select instruments associated with the givenmeterName
. -
setMeterVersion
Select instruments associated with the givenmeterVersion
. -
setMeterSchemaUrl
Select instruments associated with the givenmeterSchemaUrl
. -
build
Returns anInstrumentSelector
with the configuration of this builder.
-