Sinatra
Sinatra applications are officially supported. Instrumenting Sinatra applications requires some manual setup. Follow the installation steps in AppSignal, starting by clicking 'Add app' on the accounts screen.
Installation
After installing the AppSignal gem, add the AppSignal integration after requiring sinatra
(or sinatra/base
).
Then, create the AppSignal configuration file config/appsignal.yml
. For more details on configuring AppSignal, see the Ruby configuration page.
After these steps, start your Sinatra app and wait for data to arrive in AppSignal.
Ignoring errors
To ignore a specific Sinatra error, set the Sinatra.skip_appsignal_error
flag in the request environment. This flag will tell AppSignal to ignore the error that occurs during the request and not report it to AppSignal.
Only ignore errors like this if you need to ignore errors from a Sinatra app using code. See the ignore_errors
option to ignore it for the entire app. To avoid being notified about an error, see our notification settings.