Currently to watch stages I use flow.log, however I’d like to see an example of flow.monitor and how is it useful in monitoring streams if possible, any suggestions? documentation of flow monitor seems very sparse.
Could we clarify what you mean by “monitor a stream”? I think we may be looking at the wrong thing (monitor operator), just by conflation of names, rather than use case you’re looking after? So, what exactly do you want to know / see when you say “watch a stage” (which log is totally the right thing to use there).
You want to just print out elements? That’s what log is for.
the .monitor() operator also exists but it’s for randomly “peeking into” the stream at a given point in it from the outside. It’s not really a “monitoring” thing, more like a window/monitor that allows you to peek at the element currently at that point in the stream.