This would most certainty be part of the used subscriber. I'm not sure if any of the existing subscribers support it, but in the worst case you can write your own subscriber that wraps an existing one.
this post was submitted on 08 Sep 2023
11 points (100.0% liked)
Rust Programming
8159 readers
3 users here now
founded 5 years ago
MODERATORS
Yeap, I was thinking if perhaps any subscriber would support it, but didn't find any which documents it. Perhaps you're right and subscriber wrapper is needed.
One thing to keep in mind is that tracing
works on spans/events, so rather than the subscriber receiving a string log message, it's receiving some metadata and a collection of field/value pairs, where values can be a lot of different types. You may need to determine ahead of time which fields you want deduped (or which you don't want deduped).
yeap, thanks !
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 :/
OK, thanks !