Class ExemplarStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.metrics.ExemplarStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler<ExemplarData>
See
ExemplarMarshaler
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBinarySerializedSize
(ExemplarData exemplar, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo
(Serializer output, ExemplarData exemplar, MarshalerContext context) Marshal given value using the providedSerializer
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExemplarStatelessMarshaler
private ExemplarStatelessMarshaler()
-
-
Method Details
-
writeTo
public void writeTo(Serializer output, ExemplarData exemplar, MarshalerContext context) throws IOException Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<ExemplarData>
- Throws:
IOException
-
getBinarySerializedSize
Description copied from interface:StatelessMarshaler
Returns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler<ExemplarData>
-