Skip to content

Commit

Permalink
Remove log record attribute data_stream.*
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Jan 16, 2024
1 parent 1f133b0 commit 4695926
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions input/otlp/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,6 @@ func (c *Consumer) convertLogRecord(
event.Network.Connection = modelpb.NetworkConnectionFromVTPool()
}
event.Network.Connection.Type = v.Str()
case attributeDataStreamDataset:
if event.DataStream == nil {
event.DataStream = modelpb.DataStreamFromVTPool()
}
event.DataStream.Dataset = v.Str()
case attributeDataStreamNamespace:
if event.DataStream == nil {
event.DataStream = modelpb.DataStreamFromVTPool()
}
event.DataStream.Namespace = v.Str()
default:
setLabel(replaceDots(k), event, ifaceAttributeValue(v))
}
Expand Down
2 changes: 0 additions & 2 deletions input/otlp/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,6 @@ func TestConsumerConsumeOTelEventLogs(t *testing.T) {
record1 := newLogRecord("") // no log body
record1.Attributes().PutStr("event.domain", "device")
record1.Attributes().PutStr("event.name", "MyEvent")
record1.Attributes().PutStr("data_stream.dataset", "dataset")
record1.Attributes().PutStr("data_stream.namespace", "namespace")

record1.CopyTo(scopeLogs.LogRecords().AppendEmpty())

Expand Down

0 comments on commit 4695926

Please sign in to comment.