Interface MeterBuilder


  • public interface MeterBuilder
    Builder class for creating Meter instances.
    Since:
    1.4.0
    • Method Detail

      • setSchemaUrl

        MeterBuilder setSchemaUrl​(String schemaUrl)
        Assign 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)
        Assign a version to the instrumentation library that is using the resulting Meter.
        Parameters:
        instrumentationVersion - The version of the instrumentation library.
        Returns:
        this
      • build

        Meter build()
        Gets or creates a Meter instance.
        Returns:
        a Meter instance configured with the provided options.