ShouldRecordEventFunction

Callback used before any event is actually sent. Allows higher level code to disable events.