Package io.opentelemetry.api.metrics
Interface MeterBuilder
public interface MeterBuilder
Builder class for creating
Meter
instances.
Meter
s are identified by their scope name, version, and schema URL. These identifying
fields, along with attributes, combine to form the instrumentation scope, which is attached to
all metrics produced by the Meter
.
- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Gets or creates aMeter
instance.setInstrumentationVersion
(String instrumentationScopeVersion) Sets the instrumentation scope version of the resultingMeter
.setSchemaUrl
(String schemaUrl) Set the scope schema URL of the resultingMeter
.
-
Method Details
-
setSchemaUrl
- Parameters:
schemaUrl
- The schema URL.- Returns:
- this
-
setInstrumentationVersion
- Parameters:
instrumentationScopeVersion
- The instrumentation scope version.- Returns:
- this
-
build
Meter build()Gets or creates aMeter
instance.- Returns:
- a
Meter
instance configured with the provided options.
-