In a previous PR, we improved the custom threshold logging by using logger callback and removing unnecessary logging. In this ticket, we would like to do the same for the infra-related rules. (You can find more context in this ticket)
Essentially, for any CPU-intensive processing, we need to use logger callback, here is an example of this change:
Summary
In a previous PR, we improved the custom threshold logging by using logger callback and removing unnecessary logging. In this ticket, we would like to do the same for the infra-related rules. (You can find more context in this ticket)
Essentially, for any CPU-intensive processing, we need to use logger callback, here is an example of this change:
Request: ${JSON.stringify({ searches })}
);Request: ${JSON.stringify({ searches })}
);Here is a list of existing instances in the infra plugin that we need to fix: