Package io.opentelemetry.api.metrics
Interface MeterBuilder
-
public interface MeterBuilderBuilder class for creatingMeterinstances.- Since:
- 1.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Meterbuild()Gets or creates aMeterinstance.MeterBuildersetInstrumentationVersion(String instrumentationVersion)Assigns a version to the instrumentation library that is using the resulting Meter.MeterBuildersetSchemaUrl(String schemaUrl)Assigns an OpenTelemetry schema URL to the resulting Meter.
-
-
-
Method Detail
-
setSchemaUrl
MeterBuilder setSchemaUrl(String schemaUrl)
Assigns an OpenTelemetry schema URL to the resulting Meter.- Parameters:
schemaUrl- The URL of the OpenTelemetry schema being used by this instrumentation library.- Returns:
- this
-
setInstrumentationVersion
MeterBuilder setInstrumentationVersion(String instrumentationVersion)
Assigns a version to the instrumentation library that is using the resulting Meter.- Parameters:
instrumentationVersion- The version of the instrumentation library.- Returns:
- this
-
-