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 MarshalerWithSize
private final KeyValueMarshaler[]
private final int
private static final String
private static final String
private final long
private final ProtoEnumInfo
private final byte[]
private final String
private final long
private final TraceFlags
private final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LogMarshaler
(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 int
calculateSize
(long timeUnixNano, long observedTimeUnixNano, ProtoEnumInfo severityNumber, byte[] severityText, MarshalerWithSize anyValueMarshaler, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, TraceFlags traceFlags, String traceId, String spanId) (package private) static LogMarshaler
create
(LogRecordData logRecordData) (package private) static ProtoEnumInfo
toProtoSeverityNumber
(Severity severity) protected 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 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:
writeTo
in 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
-