mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-24 09:15:31 -06:00
959de3dac1
This change allows users to configure the rate at which decision logs can be written into the encoder. A token bucket based rate limiter is used to decide if a log event should be written into the encoder. The encoded events are then added to the buffer. If the rate limit is exceeded the event is dropped. This change provides added control to users over buufering log events on top of the existing behavior of specifying a buffer size limit. Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>