Error Handling (sentry)
- Each microservice need to expose
"/health"
and return with http 200, this is important for the load balancing of the API gateway
- Unhandled exception handling ("in the wild")
- Frontend Application
- Returning 5xx to client (can indicate operations issues)
- Depending on application logic (additional errors; cases that should not happen; security)
- Implausible responses from upstream services (e.g. after validation of result from external API)
Environment based configuration
ENVIRONMENT
- Default environment of sentry reported in the dashboard
SENTRY_DSN
SENTRY_RELEASE
- Name of the release e.g. git commit or similar