Skip to content

To avoid spamming logs in case of excessive error rating

Fabfur requested to merge log-spam into main

Zerolog has the ability to create "BurstSampler" logger that limits the amount of logging after reaching a threshold.

First candidate for this is in the kafka producer as it created such issues in the past.

To reuse the sampled logger, I prefer to create a separate package with a global variable usable by other packages.

Bug: T380583

Merge request reports