Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

nickcharlton/grape-skylight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grape-skylight

Skylight metrics support for Grape.

Installation

Add this line to your application's Gemfile:

gem 'grape-skylight'

Or install:

gem install grape-skylight

Usage

You can include it in your API like this:

class TestAPI < Grape::API
  use Skylight::Grape::Middleware

  get '/hello/:name' do
    "Hello #{params[:name]}!"
  end
end

If you're mounting inside a Rails application, this is all you need to do. Otherwise, you'll need to ensure Skylight.start! is called and you've run through the other configuration mentioned in the Agent docs.

Contributing

  1. Fork it ( https://github.com/nickcharlton/grape-skylight/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Author

Copyright Nick Charlton 2015. nick@nickcharlton.net.

About

Skylight Metrics for Grape

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages