diff --git a/Gemfile b/Gemfile index 49ded0a..99a5fe6 100644 --- a/Gemfile +++ b/Gemfile @@ -126,3 +126,5 @@ end gem "htmlcompressor", "~> 0.4.0" gem "doorkeeper", "~> 5.8" + +gem "autotuner", "~> 1.0" diff --git a/Gemfile.lock b/Gemfile.lock index 76f3864..6e8b630 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -99,6 +99,7 @@ GEM device_detector (>= 1) safely_block (>= 0.4) ast (2.4.3) + autotuner (1.0.2) base64 (0.3.0) bcrypt_pbkdf (1.1.1) bcrypt_pbkdf (1.1.1-arm64-darwin) @@ -523,6 +524,7 @@ DEPENDENCIES activerecord-import ahoy_captain! ahoy_matey + autotuner (~> 1.0) bootsnap brakeman bullet diff --git a/config/initializers/autotuner.rb b/config/initializers/autotuner.rb new file mode 100644 index 0000000..e554154 --- /dev/null +++ b/config/initializers/autotuner.rb @@ -0,0 +1,5 @@ +# Enable autotuner. Alternatively, call Autotuner.sample_ratio= with a value +# between 0 and 1.0 to sample on a portion of instances. +Autotuner.enabled = true + +# The rest is handled by the honeybadger gem. \ No newline at end of file