Exceptions thrown by the API are picked by Sentry. Sentry keeps records of when an exception was thrown, how many times it's occurred as well as details about the request; a stack trace is also available to aid in debugging the issue.
An integration with the Slack Justice Digital workspace ensures that exceptions are not missed by posting them to the hmpps-integration-api-alerts channel.
Access to Sentry is provided to all members of the Ministry of Justice GitHub organisation as outlined in their documentation.
- Once you have access, log in to the Projects Dashboard
- Click
Join a Team
- Search for
hmpps-integration-api
- Join the team
- Select an environment from the Projects Dashboard