Skip to content

Commit

Permalink
Audit: rewrite audit entry formatting to improve performance (#27952)
Browse files Browse the repository at this point in the history
* rewrite audit entry formatting to improve performance
  • Loading branch information
Peter Wilson committed Aug 2, 2024
1 parent f4a3ac4 commit 457d5bb
Show file tree
Hide file tree
Showing 8 changed files with 594 additions and 561 deletions.
2 changes: 1 addition & 1 deletion audit/backend_noop.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (n *noopWrapper) Process(ctx context.Context, e *eventlogger.Event) (*event
// formatted headers that would have made it to the logs via the sink node.
// They only appear in requests.
if a.Subtype == RequestType {
reqEntry := &RequestEntry{}
reqEntry := &Entry{}
err = json.Unmarshal(b, &reqEntry)
if err != nil {
return nil, fmt.Errorf("unable to parse formatted audit entry data: %w", err)
Expand Down
Loading

0 comments on commit 457d5bb

Please sign in to comment.