Appsignal::Grape
AppSignal intergation for Grape, based on code from these NewRelic and Liberato gems.
Installation
Add this line to your application's Gemfile:
gem 'grape-appsignal', '~> 0.1.1'
Or install:
$ gem install grape-appsignal
Include it in your Grape API like this
class TestAPI < Grape::API
# Make sure this is at the top of the class.
# If you are mounting other APIs it only needs to go into the base API
use Appsignal::Grape::Middleware
helpers Helpers
mount ProfileAPI
get 'hello' do
"Hello World"
end
end
Make sure you have already setup AppSignal for your app!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Make a pull request