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

public abstract class MarshalerWithSize extends Marshaler
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 Details

    • MarshalerWithSize

      protected MarshalerWithSize(int size)
  • Method Details

    • getBinarySerializedSize

      public final int getBinarySerializedSize()
      Description copied from class: Marshaler
      Returns the number of bytes this Marshaler will write in proto binary format.
      Specified by:
      getBinarySerializedSize in class Marshaler