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
feat: adds auditlog plugins API #787
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v3/dev #787 +/- ##
==========================================
- Coverage 81.85% 81.24% -0.62%
==========================================
Files 153 155 +2
Lines 8252 8424 +172
==========================================
+ Hits 6755 6844 +89
- Misses 1277 1352 +75
- Partials 220 228 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
HostIP: tx.variables.serverAddr.Get(), | ||
HostPort: hostPort, | ||
ServerID: tx.variables.serverName.Get(), // TODO check | ||
alTransaction = auditlog.Transaction{ |
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.
This code specifically requires the AuditLogPartAuditLogHeader
(aka A
) part to be present and be the first one declared. The first condition is right as it is mandatory but the second isn't so I will change that in a next PR to not to grow this one.
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.
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
This PR does a few things that need to happen together:
auditlog
package into an internal packageauditlog.Config.Writer
as it was half baked API for extending auditlogs and exposed an internal APIexperimental
functions to register audit log writer and formatterHopefully this will be the last breaking change for public API.