Interface MeterProvider


@ThreadSafe public interface MeterProvider
A registry for creating named Meters.

The name Provider is for consistency with other languages and it is NOT loaded using reflection.

Since:
1.10.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Meter
    get(String instrumentationScopeName)
    Gets or creates a named Meter instance.
    meterBuilder(String instrumentationScopeName)
    Creates a MeterBuilder for a named Meter instance.
    Returns a no-op MeterProvider which provides meters which do not record or emit.
  • Method Details

    • get

      default Meter get(String instrumentationScopeName)
      Gets or creates a named Meter instance.
      Parameters:
      instrumentationScopeName - A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
      Returns:
      a Meter instance.
    • meterBuilder

      MeterBuilder meterBuilder(String instrumentationScopeName)
      Creates a MeterBuilder for a named Meter instance.
      Parameters:
      instrumentationScopeName - A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
      Returns:
      a MeterBuilder instance.
    • noop

      static MeterProvider noop()
      Returns a no-op MeterProvider which provides meters which do not record or emit.