Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ActiveSupport instrument DalliStore errors
Previously, one could use raise_errors to either handle execptions in client code or have them handled by dalli. In the later case, logging was the only way to be notified of an exception. This commit adds the ability to be notified via active support instrumentation via a cache_error.active_support event. I've added this code because I want to know when errors are occuring to trigger external monitoring and I still want dalli to fail without raising errors so that cached values are still generated.
- Loading branch information
tipair
committed
Jan 4, 2017
1 parent
d2561b5
commit 4b4a1f7
Showing
3 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters