-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add opaque Payload property to AuditMessage #153
Conversation
aleksmaus
commented
May 23, 2024
- Add opaque Payload property to AuditMessage
- Replace deprecated ioutil
- Get rid of go.uber.org/multierr dependency
- Update go to 1.21
* Add opaque Payload property to AuditMessage * Replace deprecated ioutil * Get rid of go.uber.org/multierr dependency * Update go to 1.21
…ile on Mac vs Linux, so the test on Mac fails while works on Linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the use case for this?
reassembler_test.go
Outdated
func testPayloadForMessage(msg *auparse.AuditMessage) map[string]interface{} { | ||
return map[string]interface{}{ | ||
"seq": msg.Sequence, | ||
"typ": msg.RecordType, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caller before callee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please elaborate what needs to be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you place the helper below the calling function in source order. We don't have C compiler constraints and context first makes code easier to comprehend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved after the calling function, gave it a better name.
This is for OTel, need to be able to attach the "context" to the messages, so can reconstruct the otel "scope" and "resources" attributes after "reassembly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but please wait for @andrewkroh for design approval.
* Add opaque Payload property to AuditMessage * Add opaque Payload property to AuditMessage * Replace deprecated ioutil * Get rid of go.uber.org/multierr dependency * Update go to 1.21 * Rollback the golden file check, apparently it creates the different file on Mac vs Linux, so the test on Mac fails while works on Linux * Address code review feedback