Package io.opentelemetry.api.metrics
Interface MeterBuilder
public interface MeterBuilder
Builder class for creating
Meter
instances.- Since:
- 1.10.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Gets or creates aMeter
instance.setInstrumentationVersion
(String instrumentationScopeVersion) Assigns a version to the instrumentation scope that is using the resulting Meter.setSchemaUrl
(String schemaUrl) Assigns an OpenTelemetry schema URL to the resulting Meter.
-
Method Details
-
setSchemaUrl
Assigns an OpenTelemetry schema URL to the resulting Meter.- Parameters:
schemaUrl
- The URL of the OpenTelemetry schema being used by this instrumentation scope.- Returns:
- this
-
setInstrumentationVersion
Assigns a version to the instrumentation scope that is using the resulting Meter.- Parameters:
instrumentationScopeVersion
- The version of the instrumentation scope.- Returns:
- this
-
build
Meter build()Gets or creates aMeter
instance.- Returns:
- a
Meter
instance configured with the provided options.
-