Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(awscloudwatchreceiver): emit logs from one stream in one resource #22976

Merged
merged 5 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
chore: clean after debugging
Co-authored-by: Daniel Jaglowski <[email protected]>
  • Loading branch information
aboguszewski-sumo and djaglowski committed Jul 20, 2023
commit aac172aa4b021e3e88a247b39fd9108b06beb7ed
3 changes: 1 addition & 2 deletions receiver/awscloudwatchreceiver/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ func (l *logsReceiver) processEvents(now pcommon.Timestamp, logGroupName string,

// Now we know resourceLogs is initialized and has one scopeLogs so we don't have to handle any special cases.

sl := resourceLogs.ScopeLogs()
logRecord := sl.At(0).LogRecords().AppendEmpty()
logRecord := resourceLogs.ScopeLogs().At(0).LogRecords().AppendEmpty()

logRecord.SetObservedTimestamp(now)
ts := time.UnixMilli(*e.Timestamp)
Expand Down