Package io.opentelemetry.sdk.metrics
Class InstrumentSelectorBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder
Builder for
InstrumentSelector
.- Since:
- 1.14.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
.
-
Field Details
-
instrumentType
-
instrumentName
-
instrumentUnit
-
meterName
-
meterVersion
-
meterSchemaUrl
-
-
Constructor Details
-
InstrumentSelectorBuilder
InstrumentSelectorBuilder()
-
-
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.
-