An open API service indexing awesome lists of open source software.

https://github.com/bih/rack-perf

Rack timing library for Perf
https://github.com/bih/rack-perf

Last synced: 8 months ago
JSON representation

Rack timing library for Perf

Awesome Lists containing this project

README

          

# Rack::Perf

This Rack middleware will time and record status codes from your controllers. It will then send up this timing data
to Perf's logging infrastructure where metrics and alerts are generated.

## Installation

* Add this line to your application's Gemfile:

```ruby
gem 'rack-perf'
```

* And then execute:

```bash
bundle
```

* In your application.rb file, add the middleware in your application class

```ruby
module Example
class Application < Rails::Application
# ADD THIS LINE INTO THE APPROPRIATE MODULE
config.middleware.use Rack::Perf, api_key="PERF_API_KEY"
end
end
```