Class MeterProviderSharedState
java.lang.Object
io.opentelemetry.sdk.metrics.internal.state.MeterProviderSharedState
- Direct Known Subclasses:
AutoValue_MeterProviderSharedState
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MeterProviderSharedStatecreate(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos) abstract ClockgetClock()Returns theClockused for measurements.abstract ExemplarFilterReturns theExemplarFilterfor remembering synchronous measurements.abstract ResourceReturns theResourceto attach telemetry to.abstract longReturns the timestamp when theSdkMeterProviderwas started, in epoch nanos.
-
Constructor Details
-
MeterProviderSharedState
MeterProviderSharedState()
-
-
Method Details
-
create
public static MeterProviderSharedState create(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos) -
getClock
-
getResource
-
getStartEpochNanos
public abstract long getStartEpochNanos()Returns the timestamp when theSdkMeterProviderwas started, in epoch nanos. -
getExemplarFilter
Returns theExemplarFilterfor remembering synchronous measurements.
-