Add function to create composite processors
optimizations in NewMetricsObserver