You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I = Instrumental::Agent.new(PROJECT_TOKEN)
Metrician.activate(I)
Configuration
Rack Middleware
In rails, the middleware will be inserted into your middleware stack automatically. If you control your middleware stack manually in rails, you can load the functionality using the following manual instructions:
In your application.rb file:
# request timing should be first so we get the correct queue time and start the# middleware timerconfig.middleware.insert_before("ActionDispatch::Static","RequestTiming")# if you want to track content length add the rack middlewareconfig.middleware.insert_before("ActionDispatch::Static","Rack::ContentLength")# application timing should be last/just before the request is processedconfig.middleware.use("ApplicationTiming")
If you run rake middleware, you should see something like:
use RequestTiming
use Rack::ContentLength
use ActionDispatch::Static
# etc.
use ActionDispatch::BestStandardsSupport
use ApplicationTiming
run YOUR_APP::Application.routes
Your exception tracking middleware may try to get in first (hey, Honeybadger), so you will have to change the load order in an initializer, because we want to track that as middleware time, too.
Release Process
Pull latest master
Merge feature branch(es) into master
script/test
Increment version in:
lib/metrician/version.rb
Run rake matrix:install to generate new gem lockfiles