Class MarshalerWithSize
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
- Direct Known Subclasses:
ExponentialHistogramBucketsMarshaler, ExponentialHistogramDataPointMarshaler, ExponentialHistogramMarshaler, InstrumentationScopeMarshaler, KeyValueMarshaler, LogsRequestMarshaler, MetricsRequestMarshaler, ResourceLogsMarshaler, ResourceMarshaler, ResourceMetricsMarshaler, ResourceSpansMarshaler, TraceRequestMarshaler
A Marshaler which returns a memoized size.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intReturns the number of bytes this Marshaler will write in proto binary format.Methods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline, writeTo
-
Constructor Details
-
MarshalerWithSize
protected MarshalerWithSize(int size)
-
-
Method Details
-
getBinarySerializedSize
public final int getBinarySerializedSize()Description copied from class:MarshalerReturns the number of bytes this Marshaler will write in proto binary format.- Specified by:
getBinarySerializedSizein classMarshaler
-