package canary

  1. Overview
  2. Docs
On This Page
  1. Doctrine
Capture unhandled exceptions and automatically report them through various channels

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.0.4.tar.gz
md5=5423f9c950ce2c64cdc0aa3428538d26
sha512=f349a195d1f469956952817cbbdaa59c2072609854ba334532e0fdca4e4f3704e56f7b595305998b60466dc22d248b9de4f1a2bc750d6c75a1ed760ab097dac5

doc/README.html

Canary

Canary is a tool for automatically reporting runtime exceptions to issue trackers. Developed by the University of Zurich for internal projects using OCaml.

Doctrine

When using OCaml, one should almost always use error-aware return types such as option or result to help structure application in such a way that any problems that could be reasonably expected will be handled gracefully. However, exceptional circumstances (or situations that you don't expect to have to deal with) should still raise exceptions. Usually, an exception in production is exceptional enough to demand the immediate attention of developers. That is what Canary is for. Canary provides a standard interface for exception reporters, in order to accelerate the development of reporters as well as facilitate multi-reporting, or easier transitioning between different reporters.