Class DoubleExemplar
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.data.DoubleExemplar
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DoubleExemplarcreate(io.opentelemetry.api.common.Attributes filteredAttributes, long recordTimeNanos, String spanId, String traceId, double value)Construct a new exemplar.abstract doublegetValue()Numerical value of the measurement that was recorded.doublegetValueAsDouble()Coerces this exemplar to a double value.-
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.Exemplar
getEpochNanos, getFilteredAttributes, getSpanId, getTraceId
-
-
-
-
Method Detail
-
create
public static DoubleExemplar create(io.opentelemetry.api.common.Attributes filteredAttributes, long recordTimeNanos, String spanId, String traceId, double value)
Construct a new exemplar.- Parameters:
filteredAttributes- The set ofAttributesnot already associated with thePointData.recordTimeNanos- The time when the sample qas recorded in nanoseconds.spanId- (optional) The associated SpanId.traceId- (optional) The associated TraceId.value- The value recorded.
-
getValue
public abstract double getValue()
Numerical value of the measurement that was recorded.
-
getValueAsDouble
public final double getValueAsDouble()
Description copied from interface:ExemplarCoerces this exemplar to a double value.Note: This could createa a loss of precision from
longmeasurements.- Specified by:
getValueAsDoublein interfaceExemplar
-
-