Class: Hooks::Plugins::Instruments::FailbotBase Abstract
- Inherits:
-
Object
- Object
- Hooks::Plugins::Instruments::FailbotBase
- Includes:
- Core::ComponentAccess
- Defined in:
- lib/hooks/plugins/instruments/failbot_base.rb
Overview
Subclass and implement service-specific error reporting methods
Base class for all failbot instrument plugins
This class provides the foundation for implementing custom error reporting instruments. Subclasses should implement specific methods for their target error reporting service (Sentry, Rollbar, Honeybadger, etc.).
Direct Known Subclasses
Instance Method Summary collapse
-
#report(error_or_message, context = {}) ⇒ void
Report an error or message to the error tracking service.
-
#warn(message, context = {}) ⇒ void
Report a warning-level message.
Methods included from Core::ComponentAccess
#failbot, #log, #method_missing, #respond_to_missing?, #stats
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hooks::Core::ComponentAccess
Instance Method Details
#report(error_or_message, context = {}) ⇒ void
Subclasses should implement this method for their specific service
This method returns an undefined value.
Report an error or message to the error tracking service
This is a no-op implementation that subclasses should override to provide actual error reporting functionality.
49 50 51 |
# File 'lib/hooks/plugins/instruments/failbot_base.rb', line 49 def report(, context = {}) # No-op implementation for base class end |
#warn(message, context = {}) ⇒ void
Subclasses should implement this method for their specific service
This method returns an undefined value.
Report a warning-level message
This is a no-op implementation that subclasses should override to provide actual warning reporting functionality.
66 67 68 |
# File 'lib/hooks/plugins/instruments/failbot_base.rb', line 66 def warn(, context = {}) # No-op implementation for base class end |