add Tracer#record_if. closes #17