Class MeterProviderSharedState
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.state.MeterProviderSharedState
-
- Direct Known Subclasses:
AutoValue_MeterProviderSharedState
@Immutable public abstract class MeterProviderSharedState extends java.lang.ObjectState for aSdkMeterProvider.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Constructor Summary
Constructors Constructor Description MeterProviderSharedState()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MeterProviderSharedStatecreate(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos)abstract ClockgetClock()Returns theClockused for measurements.abstract ExemplarFiltergetExemplarFilter()Returns theExemplarFilterfor remembering synchronous measurements.abstract ResourcegetResource()Returns theResourceto attach telemetry to.abstract longgetStartEpochNanos()Returns the timestamp when theSdkMeterProviderwas started, in epoch nanos.
-
-
-
Method Detail
-
create
public static MeterProviderSharedState create(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos)
-
getStartEpochNanos
public abstract long getStartEpochNanos()
Returns the timestamp when theSdkMeterProviderwas started, in epoch nanos.
-
getExemplarFilter
public abstract ExemplarFilter getExemplarFilter()
Returns theExemplarFilterfor remembering synchronous measurements.
-
-