'The exception handler for uncaught exceptions.
By default records transport level exceptions in New Relic,
including the given URL and payload.'

def handle_exception(self, payload):

    newrelic.agent.record_exception(params=payload, *sys.exc_info())
