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
ConstructorsModifierConstructorDescriptionprivate
MetricsRequestMarshaler
(ResourceMetricsMarshaler[] resourceMetricsMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(ResourceMetricsMarshaler[] resourceMetricsMarshalers) static MetricsRequestMarshaler
create
(Collection<MetricData> metricDataList) Returns aMetricsRequestMarshaler
that can be used to convert the providedMetricData
into a serialized OTLP ExportMetricsServiceRequest.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
-
resourceMetricsMarshalers
-
-
Constructor Details
-
MetricsRequestMarshaler
-
-
Method Details
-
create
Returns aMetricsRequestMarshaler
that can be used to convert the providedMetricData
into a serialized OTLP ExportMetricsServiceRequest. -
writeTo
- Specified by:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
-