figma-plugin
figma-plugin copied to clipboard
[DX] Sentry: create an error handling utility to standardize tracking
📝 Context
- We only use
Sentry.captureException(e), ideally this should call an error service that handles data enrichment - Sentry does not get initialised when on the
developmentenvironment - we should offer a command to allow this - Upgrade Sentry SDK: https://docs.sentry.io/platforms/javascript/migration/v7-to-v8/
Suggested Actions
- Discuss and define what kind of data/tags would be useful for data enrichment in an error service/class
- Research existing Sentry wrapper class implementations re data enrichment
- Optional Sentry initialisation in developer environment (should probably be opt-in, as don't want to pollute Sentry incase of things such as infinite loops while working on plugin messaging, etc)
- Upgrade Sentry SDK
Estimate: ~TODO~ – after discussion, need extra context re changes required