Provide your Sentry credentials
You will need to add the following environment variables in order to use Sentry in Mage:
SENTRY_DSN: sentry dsn url
SENTRY_TRACES_SAMPLE_RATE: (optional) value between 0 and 1
Using Sentry in Mage
Once you set the
SENTRY_DSN environment variable, the Sentry integration will be
enabled the next time you start the Mage server.
The following errors will be reported to Sentry:
- Exceptions from trigger runs.
- Exceptions from the Mage scheduler.
- Exceptions from runs started by the
mage runCLI command.