Skip to content

Support sending arbitrary extra data to Sentry

Timo Furrer requested to merge refactor-handling-error-data into master
  • Support sending arbitrary extra data to Sentry

This change set refactors the current HandleProcessingError interface of the modshared.API and modshared.RPCAPI to accept an arbitrary number of fields that contain extra data. Each field consists of a key and a value pair.

This refactoring also avoids the unnecessary passing of modshared.NoAgent in many places.

This change set allows for future refactorings to pass variable error data as a separate field instead of formatting it into the error message. This allows for proper error aggregation in Sentry.

Changelog: changed

Closes #581 (closed)

Relates to #386 (closed).

Edited by Mikhail Mazurskiy

Merge request reports