Class SdkMeterProvider

java.lang.Object
io.opentelemetry.sdk.metrics.SdkMeterProvider
All Implemented Interfaces:
io.opentelemetry.api.metrics.MeterProvider, Closeable, AutoCloseable

public final class SdkMeterProvider extends Object implements io.opentelemetry.api.metrics.MeterProvider, Closeable
SDK implementation for MeterProvider.
Since:
1.14.0
  • Method Details

    • builder

      public static SdkMeterProviderBuilder builder()
    • meterBuilder

      public io.opentelemetry.api.metrics.MeterBuilder meterBuilder(String instrumentationScopeName)
      Specified by:
      meterBuilder in interface io.opentelemetry.api.metrics.MeterProvider
    • forceFlush

      public io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
      Call MetricReader.forceFlush() on all metric readers associated with this provider. The resulting CompletableResultCode completes when all complete.
    • shutdown

      public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
      Shutdown the provider. Calls MetricReader.shutdown() on all metric readers associated with this provider. The resulting CompletableResultCode completes when all complete.
    • close

      public void close()
      Close the meter provider. Calls shutdown() and blocks waiting for it to complete.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • toString

      public String toString()
      Overrides:
      toString in class Object