Class TraceRequestMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.traces.TraceRequestMarshaler
-
public final class TraceRequestMarshaler extends MarshalerWithSize
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceSpansMarshaler[]resourceSpansMarshalers
-
Constructor Summary
Constructors Modifier Constructor Description privateTraceRequestMarshaler(ResourceSpansMarshaler[] resourceSpansMarshalers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceRequestMarshalercreate(java.util.Collection<SpanData> spanDataList)Returns aTraceRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportTraceServiceRequest.voidwriteTo(Serializer output)-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
-
-
-
Field Detail
-
resourceSpansMarshalers
private final ResourceSpansMarshaler[] resourceSpansMarshalers
-
-
Constructor Detail
-
TraceRequestMarshaler
private TraceRequestMarshaler(ResourceSpansMarshaler[] resourceSpansMarshalers)
-
-
Method Detail
-
create
public static TraceRequestMarshaler create(java.util.Collection<SpanData> spanDataList)
Returns aTraceRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportTraceServiceRequest.
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
-