Class LogMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.logs.LogMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MarshalerWithSizeprivate final KeyValueMarshaler[]private final intprivate static final Stringprivate static final Stringprivate final longprivate final ProtoEnumInfoprivate final byte[]private final Stringprivate final longprivate final TraceFlagsprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLogMarshaler(long timeUnixNano, long observedTimeUnixNano, ProtoEnumInfo severityNumber, byte[] severityText, MarshalerWithSize anyValueMarshaler, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, TraceFlags traceFlags, String traceId, String spanId) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(long timeUnixNano, long observedTimeUnixNano, ProtoEnumInfo severityNumber, byte[] severityText, MarshalerWithSize anyValueMarshaler, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, TraceFlags traceFlags, String traceId, String spanId) (package private) static LogMarshalercreate(LogRecordData logRecordData) (package private) static ProtoEnumInfotoProtoSeverityNumber(Severity severity) protected voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
INVALID_TRACE_ID
-
INVALID_SPAN_ID
-
timeUnixNano
private final long timeUnixNano -
observedTimeUnixNano
private final long observedTimeUnixNano -
severityNumber
-
severityText
private final byte[] severityText -
anyValueMarshaler
-
attributeMarshalers
-
droppedAttributesCount
private final int droppedAttributesCount -
traceFlags
-
traceId
-
spanId
-
-
Constructor Details
-
LogMarshaler
private LogMarshaler(long timeUnixNano, long observedTimeUnixNano, ProtoEnumInfo severityNumber, byte[] severityText, @Nullable MarshalerWithSize anyValueMarshaler, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, TraceFlags traceFlags, @Nullable String traceId, @Nullable String spanId)
-
-
Method Details
-
create
-
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(long timeUnixNano, long observedTimeUnixNano, ProtoEnumInfo severityNumber, byte[] severityText, @Nullable MarshalerWithSize anyValueMarshaler, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, TraceFlags traceFlags, @Nullable String traceId, @Nullable String spanId) -
toProtoSeverityNumber
-