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 MeterProviderSharedState
create
(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos) abstract Clock
getClock()
Returns theClock
used for measurements.abstract ExemplarFilter
Returns theExemplarFilter
for remembering synchronous measurements.abstract Resource
Returns theResource
to attach telemetry to.abstract long
Returns the timestamp when theSdkMeterProvider
was started, in epoch nanos.
-
Constructor Details
-
MeterProviderSharedState
MeterProviderSharedState()
-
-
Method Details
-
create
public static MeterProviderSharedState create(Clock clock, Resource resource, ExemplarFilter exemplarFilter, long startEpochNanos) -
getClock
Returns theClock
used for measurements. -
getResource
Returns theResource
to attach telemetry to. -
getStartEpochNanos
public abstract long getStartEpochNanos()Returns the timestamp when theSdkMeterProvider
was started, in epoch nanos. -
getExemplarFilter
Returns theExemplarFilter
for remembering synchronous measurements.
-