Add extra_attrs argument to the handler constructor so it can emit arbitrary attributes in the record along with the standard attributes.