filter backtrace to redis with take_while

A refactoring to filter_backtrace to save at redis.