diff --git a/lib/new_relic/agent/configuration/default_source.rb b/lib/new_relic/agent/configuration/default_source.rb index ccbbd68b2c..4f035ebd8c 100644 --- a/lib/new_relic/agent/configuration/default_source.rb +++ b/lib/new_relic/agent/configuration/default_source.rb @@ -741,9 +741,9 @@ def self.enforce_fallback(allowed_values: nil, fallback: nil) :'browser_monitoring.ignored_scripts' => { :default => ['/sidekiq'], :public => true, - :type => Arrat, + :type => Array, :allowed_from_server => false, - :description => 'An array of SCRIPT_NAME header values where the browser monitoring Javascript header should not be injected. This header is defined in the [Rack environment](https://github.com/rack/rack/blob/main/SPEC.rdoc#the-environment-).' + :description => 'An array of SCRIPT_NAME environment values where the browser monitoring JavaScript header should not be injected. This header is defined in the [Rack environment](https://github.com/rack/rack/blob/main/SPEC.rdoc#the-environment-).' }, # Transaction events :'transaction_events.enabled' => { diff --git a/lib/new_relic/rack/browser_monitoring.rb b/lib/new_relic/rack/browser_monitoring.rb index 1b237d3740..dac2725556 100644 --- a/lib/new_relic/rack/browser_monitoring.rb +++ b/lib/new_relic/rack/browser_monitoring.rb @@ -117,8 +117,8 @@ def streaming?(env, headers) end def ignored_script?(env) - NewRelic::Agent.config[:browser_monitoring.ignored_scripts].each do |script| - break false if env['SCRIPT_NAME'] == script + NewRelic::Agent.config[:'browser_monitoring.ignored_scripts'].each do |script| + break true if env['SCRIPT_NAME'] == script end end