Class TraceRequestMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.traces.TraceRequestMarshaler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTraceRequestMarshaler(ResourceSpansMarshaler[] resourceSpansMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionstatic TraceRequestMarshalercreate(Collection<SpanData> spanDataList) Returns aTraceRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportTraceServiceRequest.voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
resourceSpansMarshalers
-
-
Constructor Details
-
TraceRequestMarshaler
-
-
Method Details
-
create
Returns aTraceRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportTraceServiceRequest. -
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-