Hi!
There is a window variant where you can use both a ReduceFunction and a Window Function. You can use the metrics in the WindowFunction. Does that help your use case, or do you need the metrics strictly in the ReduceFunction?
There are thoughts to allow the ReduceFunction to be "semi-rich", meaning it can get access to the RuntimeContext and use metrics, etc, but no keyed state.
Stephan