Class InstrumentationScopeMetricsStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.metrics.InstrumentationScopeMetricsStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler2<InstrumentationScopeInfo,java.util.List<MetricData>>
final class InstrumentationScopeMetricsStatelessMarshaler extends java.lang.Object implements StatelessMarshaler2<InstrumentationScopeInfo,java.util.List<MetricData>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static InstrumentationScopeMetricsStatelessMarshaler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
InstrumentationScopeMetricsStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBinarySerializedSize(InstrumentationScopeInfo instrumentationScope, java.util.List<MetricData> metrics, MarshalerContext context)
Returns the number of bytes this Marshaler will write.void
writeTo(Serializer output, InstrumentationScopeInfo instrumentationScope, java.util.List<MetricData> metrics, MarshalerContext context)
Marshal given key and value using the providedSerializer
.
-
-
-
Field Detail
-
INSTANCE
static final InstrumentationScopeMetricsStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, InstrumentationScopeInfo instrumentationScope, java.util.List<MetricData> metrics, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler2
Marshal given key and value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler2<InstrumentationScopeInfo,java.util.List<MetricData>>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(InstrumentationScopeInfo instrumentationScope, java.util.List<MetricData> metrics, MarshalerContext context)
Description copied from interface:StatelessMarshaler2
Returns the number of bytes this Marshaler will write.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler2<InstrumentationScopeInfo,java.util.List<MetricData>>
-
-