Class LongExemplarData
java.lang.Object
io.opentelemetry.sdk.metrics.data.LongExemplarData
- All Implemented Interfaces:
ExemplarData
An
ExemplarData
with long
measurements.-
Method Summary
Modifier and TypeMethodDescriptionstatic LongExemplarData
create
(io.opentelemetry.api.common.Attributes filteredAttributes, long recordTimeNanos, io.opentelemetry.api.trace.SpanContext spanContext, long value) Construct a new exemplar.abstract long
getValue()
Numerical value of the measurement that was recorded.final double
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.opentelemetry.sdk.metrics.data.ExemplarData
getEpochNanos, getFilteredAttributes, getSpanContext, getSpanId, getTraceId
-
Method Details
-
create
public static LongExemplarData create(io.opentelemetry.api.common.Attributes filteredAttributes, long recordTimeNanos, io.opentelemetry.api.trace.SpanContext spanContext, long value) Construct a new exemplar.- Parameters:
filteredAttributes
- The set ofAttributes
not already associated with thePointData
.recordTimeNanos
- The time when the sample qas recorded in nanoseconds.spanContext
- The associated span context.value
- The value recorded.
-
getValue
public abstract long getValue()Numerical value of the measurement that was recorded. -
getValueAsDouble
Deprecated.Description copied from interface:ExemplarData
Coerces this exemplar to a double value.Note: This could create a loss of precision from
long
measurements.- Specified by:
getValueAsDouble
in interfaceExemplarData
-