Class MetricsRequestMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.metrics.MetricsRequestMarshaler
Marshaler to convert SDK MetricData to OTLP ExportMetricsServiceRequest.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMetricsRequestMarshaler(ResourceMetricsMarshaler[] resourceMetricsMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(ResourceMetricsMarshaler[] resourceMetricsMarshalers) static MetricsRequestMarshalercreate(Collection<MetricData> metricDataList) Returns aMetricsRequestMarshalerthat can be used to convert the providedMetricDatainto a serialized OTLP ExportMetricsServiceRequest.voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
resourceMetricsMarshalers
-
-
Constructor Details
-
MetricsRequestMarshaler
-
-
Method Details
-
create
Returns aMetricsRequestMarshalerthat can be used to convert the providedMetricDatainto a serialized OTLP ExportMetricsServiceRequest. -
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
-