Skip to content

Commit

Permalink
feat(otlp-transformer): make toLogRecord() use ReadableLogRecord.drop…
Browse files Browse the repository at this point in the history
…pedAttributesCount
  • Loading branch information
HyunnoH committed Nov 14, 2023
1 parent d26d26e commit 331f78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/packages/otlp-transformer/src/logs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function toLogRecord(log: ReadableLogRecord, encoder: Encoder): ILogRecord {
severityText: log.severityText,
body: toAnyValue(log.body),
attributes: toLogAttributes(log.attributes),
droppedAttributesCount: 0,
droppedAttributesCount: log.droppedAttributesCount,
flags: log.spanContext?.traceFlags,
traceId: encoder.encodeOptionalSpanContext(log.spanContext?.traceId),
spanId: encoder.encodeOptionalSpanContext(log.spanContext?.spanId),
Expand Down

0 comments on commit 331f78d

Please sign in to comment.