Add method to raise error if AppSignal is not started
Added
-
Add the
Appsignal.config_error
andAppsignal.config_error?
methods. This method contains any error that may have occurred while loading theconfig/appsignal.rb
file. If it isnil
no error occurred orAppsignal.start
hasn't been called yet. TheAppsignal.config_error?
method is an alias for syntax sugar. -
Add the
check_if_started!
method. This method will raise an error if the AppSignal Ruby gem failed to start.Call this method in your CI or on app boot if you wish to verify that AppSignal has started when your application does, and want the application to fail to start if AppSignal hasn't started.
For example, in this Rails initializer:
Ruby# config/initializers/appsignal.rb Appsignal.check_if_started!
View the Ruby gem v4.5.7 changelog for more information.