Added filter callback to length aggregate metrics