1. Division
Divide API
  • Division
    • Endpoints
    • Getting Started
    • Observability and Monitoring
    • Divide two integers
      POST
  1. Division

Observability and Monitoring

Logging#

The app uses the standard Python logging module to log messages in the app.log as log records.
This helps to know when something goes wrong while the application is executing, the input data or when we encounter errors.

Sentry#

The app has Sentry intergrated for error tracking and performance monitoring.
When an exception happens its captured and reported on the Sentry dashboard in real-time.
When an error occurres you get notified via email and Slack inorder to resolve it on time. This includes expected and unexpected errors and exceptions.
Like in this case the user missed to provide the divideb and this exception which was not captured in code was captured in sentry.
Screenshot 2024-07-10 at 2.29.26 PM.png
Screenshot 2024-07-10 at 2.33.24 PM.png

Incident Report#

Division by Zero with a Payload{"a": 0, "b":0}#

When a user tries to perform this request it raises an value error and user gets an error response message: You cannot divide by 0

Implimentation#

Check input from b is a zero
Log the payload to get a further understanding of the error log
Continous monitoring using Sentry to capture and resolve the incidents in real time.
Modified at 2024-07-10 11:33:58
Previous
Getting Started
Next
Divide two integers
Built with