const subsystem … var eventCounter … var errorCounter … var levelCounter … var ApiserverAuditDroppedCounter … func init() { … } // ObserveEvent updates the relevant prometheus metrics for the generated audit event. func ObserveEvent(ctx context.Context) { … } // ObservePolicyLevel updates the relevant prometheus metrics with the audit level for a request. func ObservePolicyLevel(ctx context.Context, level auditinternal.Level) { … } // HandlePluginError handles an error that occurred in an audit plugin. This method should only be // used if the error may have prevented the audit event from being properly recorded. The events are // logged to the debug log. func HandlePluginError(plugin string, err error, impacted ...*auditinternal.Event) { … }