I’ve been reading a bit the tracing crate documentation, trying to find out if there’s a way to rate limit logs.

What I refer with rate limiting, is that once a particular log has shown up with some frequency (x amount of times in a given time) then it won’t be captured or shown anymore, until certain amount of time… This to avoid getting the logs space/buffer being eaten by just one, or a few high frequency errors for example.

Thanks !

  • Lexxy
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    AFAIK it will just print out all the logs it gets. There is no rate limiting. I guess for such a feature someone may need some postprocessing or filtering :/