Class ExponentialHistogramDataPointMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.metrics.ExponentialHistogramDataPointMarshaler
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]
private final long
private final ExemplarMarshaler[]
private final boolean
private final boolean
private final double
private final double
private final ExponentialHistogramBucketsMarshaler
private final ExponentialHistogramBucketsMarshaler
private final int
private final long
private final double
private final long
private final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExponentialHistogramDataPointMarshaler
(long startEpochNanos, long epochNanos, int scale, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, long zeroCount, ExponentialHistogramBucketsMarshaler positiveBuckets, ExponentialHistogramBucketsMarshaler negativeBuckets, KeyValueMarshaler[] attributeMarshalers, ExemplarMarshaler[] exemplarMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(long startTimeUnixNano, long timeUnixNano, int scale, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, long zeroCount, ExponentialHistogramBucketsMarshaler positiveBucketMarshaler, ExponentialHistogramBucketsMarshaler negativeBucketMarshaler, ExemplarMarshaler[] exemplarMarshalers, KeyValueMarshaler[] attributesMarshalers) (package private) static ExponentialHistogramDataPointMarshaler
(package private) static ExponentialHistogramDataPointMarshaler[]
protected void
writeTo
(Serializer output) Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
startTimeUnixNano
private final long startTimeUnixNano -
timeUnixNano
private final long timeUnixNano -
scale
private final int scale -
count
private final long count -
zeroCount
private final long zeroCount -
sum
private final double sum -
hasMin
private final boolean hasMin -
min
private final double min -
hasMax
private final boolean hasMax -
max
private final double max -
positiveBuckets
-
negativeBuckets
-
exemplars
-
attributes
-
-
Constructor Details
-
ExponentialHistogramDataPointMarshaler
private ExponentialHistogramDataPointMarshaler(long startEpochNanos, long epochNanos, int scale, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, long zeroCount, ExponentialHistogramBucketsMarshaler positiveBuckets, ExponentialHistogramBucketsMarshaler negativeBuckets, KeyValueMarshaler[] attributeMarshalers, ExemplarMarshaler[] exemplarMarshalers)
-
-
Method Details
-
create
-
createRepeated
static ExponentialHistogramDataPointMarshaler[] createRepeated(Collection<ExponentialHistogramPointData> points) -
writeTo
- Specified by:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(long startTimeUnixNano, long timeUnixNano, int scale, long count, double sum, boolean hasMin, double min, boolean hasMax, double max, long zeroCount, ExponentialHistogramBucketsMarshaler positiveBucketMarshaler, ExponentialHistogramBucketsMarshaler negativeBucketMarshaler, ExemplarMarshaler[] exemplarMarshalers, KeyValueMarshaler[] attributesMarshalers)
-