Hmm, interesting read. Some stuff like this seems to have evolved organically - I'd say TaskRealtimeMetricsMonitor is an example of this technique.
It seems like a reasonable pattern when you're doing multiple different kinds of instrumentation (like, both logs and metrics), if the thing you're instrumenting is complicated, or if you want to instrument two similar things in a consistent way. Like a lot of fancy design patterns it sounds overkill for situations that are simpler than that. On Sat, Apr 13, 2019 at 11:49 AM Roman Leventov <leventov...@gmail.com> wrote: > There is a recent discussion of logging (including its code-level > noisiness): https://github.com/apache/incubator-druid/issues/7362 > > This article describes an interesting pattern that we can probably apply in > some parts of the Druid codebase: > https://martinfowler.com/articles/domain-oriented-observability.html >