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 private
TraceRequestMarshaler(ResourceSpansMarshaler[] resourceSpansMarshalers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceRequestMarshaler
create(java.util.Collection<SpanData> spanDataList)
Returns aTraceRequestMarshaler
that can be used to convert the providedSpanData
into a serialized OTLP ExportTraceServiceRequest.void
writeTo(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 aTraceRequestMarshaler
that can be used to convert the providedSpanData
into a serialized OTLP ExportTraceServiceRequest.
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
-