Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exporter/debugexporter/internal/otlptext/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func (textLogsMarshaler) MarshalLogs(ld plog.Logs) ([]byte, error) {
}
buf.logEntry("Body: %s", valueToString(lr.Body()))
buf.logAttributes("Attributes", lr.Attributes())
buf.logEntry("Trace ID: %s", lr.TraceID())
buf.logEntry("Span ID: %s", lr.SpanID())
buf.logAttr("Trace ID", lr.TraceID())
buf.logAttr("Span ID", lr.SpanID())
buf.logEntry("Flags: %d", lr.Flags())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Body: Map({"key1":"val1","key2":{"key21":"val21","key22":"val22"}})
Attributes:
-> key1: Map({"key11":"val11","key12":"val12","key13":{"key131":"val131"}})
-> key2: Str(val2)
Trace ID:
Span ID:
Trace ID :
Span ID :
Flags: 0
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Body: Str(This is a log message)
Attributes:
-> app: Str(server)
-> instance_num: Int(1)
Trace ID: 08040201000000000000000000000000
Span ID: 0102040800000000
Trace ID : 08040201000000000000000000000000
Span ID : 0102040800000000
Flags: 0
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ SeverityNumber: Info(9)
Body: Str(This is a test log message)
Attributes:
-> test.attribute: Str(test-value)
Trace ID:
Span ID:
Trace ID :
Span ID :
Flags: 0
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Body: Str(This is a log message)
Attributes:
-> app: Str(server)
-> instance_num: Int(1)
Trace ID: 08040201000000000000000000000000
Span ID: 0102040800000000
Trace ID : 08040201000000000000000000000000
Span ID : 0102040800000000
Flags: 0
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Body: Str(This is a log message)
Attributes:
-> app: Str(server)
-> instance_num: Int(1)
Trace ID: 08040201000000000000000000000000
Span ID: 0102040800000000
Trace ID : 08040201000000000000000000000000
Span ID : 0102040800000000
Flags: 0
LogRecord #1
ObservedTimestamp: 1970-01-01 00:00:00 +0000 UTC
Expand All @@ -26,6 +26,6 @@ Body: Str(something happened)
Attributes:
-> customer: Str(acme)
-> env: Str(dev)
Trace ID:
Span ID:
Trace ID :
Span ID :
Flags: 0