Package io.opentelemetry.api.metrics
Interface MeterBuilder
-
- All Known Implementing Classes:
DefaultMeterProvider.NoopMeterBuilder,ExtendedDefaultMeterProvider.NoopMeterBuilder,SdkMeterBuilder
public interface MeterBuilderBuilder class for creatingMeterinstances.Meters 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 theMeter.- Since:
- 1.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Meterbuild()Gets or creates aMeterinstance.MeterBuildersetInstrumentationVersion(java.lang.String instrumentationScopeVersion)Sets the instrumentation scope version of the resultingMeter.MeterBuildersetSchemaUrl(java.lang.String schemaUrl)Set the scope schema URL of the resultingMeter.
-
-
-
Method Detail
-
setSchemaUrl
MeterBuilder setSchemaUrl(java.lang.String schemaUrl)
- Parameters:
schemaUrl- The schema URL.- Returns:
- this
-
setInstrumentationVersion
MeterBuilder setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
- Parameters:
instrumentationScopeVersion- The instrumentation scope version.- Returns:
- this
-
-