Refactor HandleProcessingError interface to accept arbitrary extra fields
We currently don't have a good enough way to add arbitrary extra fields / data to calls to HandleProcessingAPI
. This API is used to log errors and track them in Sentry.
We need to be able to send extra data so that we can leave the messages constant (without variables) so that we can properly aggregate errors in Sentry and with that reduce the overall noise.
This refactoring paves the way to allow this.