make metric filters immutable to prevent potential visibility races