Class SdkMeterBuilder

    • Field Detail

      • instrumentationScopeName

        private final java.lang.String instrumentationScopeName
      • instrumentationScopeVersion

        @Nullable
        private java.lang.String instrumentationScopeVersion
      • schemaUrl

        @Nullable
        private java.lang.String schemaUrl
    • Constructor Detail

    • Method Detail

      • setSchemaUrl

        public MeterBuilder setSchemaUrl​(java.lang.String schemaUrl)
        Description copied from interface: MeterBuilder
        Set the scope schema URL of the resulting Meter. Schema URL is part of Meter identity.
        Specified by:
        setSchemaUrl in interface MeterBuilder
        Parameters:
        schemaUrl - The schema URL.
        Returns:
        this
      • setInstrumentationVersion

        public MeterBuilder setInstrumentationVersion​(java.lang.String instrumentationScopeVersion)
        Description copied from interface: MeterBuilder
        Sets the instrumentation scope version of the resulting Meter. Version is part of Meter identity.
        Specified by:
        setInstrumentationVersion in interface MeterBuilder
        Parameters:
        instrumentationScopeVersion - The instrumentation scope version.
        Returns:
        this
      • build

        public Meter build()
        Description copied from interface: MeterBuilder
        Gets or creates a Meter instance.
        Specified by:
        build in interface MeterBuilder
        Returns:
        a Meter instance configured with the provided options.