Add tracer.newAttr() function for programmatic attribute setting.