Skip to content

Commit

Permalink
Merge pull request #377 from rollbar/jon/3860/fix-double-grape-reports
Browse files Browse the repository at this point in the history
Add disable_rack_monkey_patch configuration option
  • Loading branch information
jondeandres committed Feb 4, 2016
2 parents 06a11e3 + c79513e commit 3cbdceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def require_hooks
require 'rollbar/sidekiq' if defined?(Sidekiq)
require 'rollbar/active_job' if defined?(ActiveJob)
require 'rollbar/goalie' if defined?(Goalie)
require 'rollbar/rack' if defined?(Rack)
require 'rollbar/rack' if defined?(Rack) unless configuration.disable_rack_monkey_patch
require 'rollbar/rake' if defined?(Rake)
end

Expand Down
2 changes: 2 additions & 0 deletions lib/rollbar/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Configuration
attr_accessor :delayed_job_enabled
attr_accessor :default_logger
attr_accessor :disable_monkey_patch
attr_accessor :disable_rack_monkey_patch
attr_accessor :disable_core_monkey_patch
attr_accessor :dj_threshold
attr_accessor :enabled
Expand Down Expand Up @@ -61,6 +62,7 @@ def initialize
@delayed_job_enabled = true
@disable_monkey_patch = false
@disable_core_monkey_patch = false
@disable_rack_monkey_patch = false
@dj_threshold = 0
@enabled = nil # set to true when configure is called
@endpoint = DEFAULT_ENDPOINT
Expand Down

0 comments on commit 3cbdceb

Please sign in to comment.