Class MeterProviderSharedState

java.lang.Object
io.opentelemetry.sdk.metrics.internal.state.MeterProviderSharedState
Direct Known Subclasses:
AutoValue_MeterProviderSharedState

@Immutable public abstract class MeterProviderSharedState extends Object
State for a SdkMeterProvider.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Constructor Details

    • MeterProviderSharedState

      MeterProviderSharedState()
  • Method Details

    • create

      public static MeterProviderSharedState create(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos)
    • getClock

      public abstract Clock getClock()
      Returns the Clock used for measurements.
    • getResource

      public abstract Resource getResource()
      Returns the Resource to attach telemetry to.
    • getStartEpochNanos

      public abstract long getStartEpochNanos()
      Returns the timestamp when the SdkMeterProvider was started, in epoch nanos.
    • getExemplarFilter

      public abstract ExemplarFilter getExemplarFilter()
      Returns the ExemplarFilter for remembering synchronous measurements.