Class MarshalerWithSize
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- Direct Known Subclasses:
ArrayAnyValueMarshaler,ArrayAnyValueMarshaler.ArrayValueMarshaler,BoolAnyValueMarshaler,BytesAnyValueMarshaler,DoubleAnyValueMarshaler,ExemplarMarshaler,ExponentialHistogramBucketsMarshaler,ExponentialHistogramDataPointMarshaler,ExponentialHistogramMarshaler,GaugeMarshaler,HistogramDataPointMarshaler,HistogramMarshaler,InstrumentationScopeLogsMarshaler,InstrumentationScopeMarshaler,InstrumentationScopeMarshaler.RealInstrumentationScopeMarshaler,InstrumentationScopeMetricsMarshaler,InstrumentationScopeSpansMarshaler,IntAnyValueMarshaler,KeyValueListAnyValueMarshaler,KeyValueListAnyValueMarshaler.KeyValueListMarshaler,KeyValueMarshaler,LogMarshaler,LogsRequestMarshaler,MetricMarshaler,MetricsRequestMarshaler,NoopMarshaler,NumberDataPointMarshaler,ResourceLogsMarshaler,ResourceMarshaler,ResourceMarshaler.RealResourceMarshaler,ResourceMetricsMarshaler,ResourceSpansMarshaler,SpanEventMarshaler,SpanLinkMarshaler,SpanMarshaler,SpanStatusMarshaler,StringAnyValueMarshaler,SumMarshaler,SummaryDataPointMarshaler,SummaryMarshaler,TraceRequestMarshaler,ValueAtQuantileMarshaler
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.
-
-
Field Summary
Fields Modifier and Type Field Description private intsize
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarshalerWithSize(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBinarySerializedSize()Returns the number of bytes this Marshaler will write in proto binary format.-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline, writeTo
-
-
-
-
Method Detail
-
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
-
-