Monitor user-defined function

But why create a trigger? Why not implement some change control.
Check out check in code code review and deploy only approved code

Your source control becomes you audit trail