def METHOD_NAME(self, appsec_enabled=True, iast_enabled=False):
    self.tracer._appsec_enabled = appsec_enabled
    self.tracer._iast_enabled = iast_enabled
    # Hack: need to pass an argument to configure so that the processors are recreated
    self.tracer.configure(api_version="v0.4")