add stack trace processor and refactor introspection processor to reduce code duplication

Adding the stack trace of exception would be done much better by getting the exception from the logging context instead, given there is a convention for that