No release in over a year
Send a percentage of web requests and background jobs to Scout APM so you can subscribe to a lower affordable plan and save money
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

scout_apm_sampler

Instrument only a percentage of your Rails app's web requests and background jobs in Scout APM so you can subscribe to an affordable plan in Scout APM

Why

Application Performance Management (APM) tools are often expensive. This forces many startups to forego using an APM tool. This gem helps you instrument only a percentage of your Rails app's web requests and background jobs in Scout APM so you can subscribe to a plan that's affordable for you now and later upgrade as your revenue grows.

Installation

Add scout_apm_sampler to your Rails app's Gemfile

gem "scout_apm_sampler"

and bundle install

bundle install

Now, in an initializer, configure scout_apm_sampler to only send a percentage of web requests and background jobs to Scout APM

# config/initializers/scout_apm_sampler.rb

ScoutApmSampler.configure do |config|
  config.web_request_sampling_rate = 0.1
  config.background_job_sampling_rate = 0.05
end

Todos

  • Support other background job systems in addition to Sidekiq