From 1e9c4f8aa03543907b7ac5d8fe2da6fb5c01de98 Mon Sep 17 00:00:00 2001 From: Dr Kim Foale Date: Fri, 6 Sep 2024 00:43:07 +0100 Subject: [PATCH] feat: Remove rollbar (#2597) --- Gemfile | 1 - Gemfile.lock | 2 -- app/jobs/calendar_importer_job.rb | 2 -- app/views/pages/privacy.html.erb | 2 +- config/initializers/rollbar.rb | 60 ------------------------------- 5 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 config/initializers/rollbar.rb diff --git a/Gemfile b/Gemfile index f69a72ccf..0aa045495 100644 --- a/Gemfile +++ b/Gemfile @@ -86,7 +86,6 @@ gem 'net-pop', require: false gem 'net-smtp', require: false gem 'observer' gem 'paper_trail' -gem 'rollbar' gem 'uk_postcode' group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index 2ad2eed09..0120c438f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -386,7 +386,6 @@ GEM netrc (~> 0.8) rexml (3.2.9) strscan - rollbar (3.5.2) rubocop (1.62.0) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -558,7 +557,6 @@ DEPENDENCIES rails-controller-testing rails-erd rdoc - rollbar rubocop (= 1.62.0) rubocop-graphql (= 1.5.4) rubocop-minitest (= 0.35.1) diff --git a/app/jobs/calendar_importer_job.rb b/app/jobs/calendar_importer_job.rb index 2848f91af..eee07ea10 100644 --- a/app/jobs/calendar_importer_job.rb +++ b/app/jobs/calendar_importer_job.rb @@ -59,8 +59,6 @@ def report_error(e, message) # see note in Calendar#flag_error_import_job! for details calendar.reload calendar.flag_error_import_job! full_message - # puts full_message, backtrace if Rails.env.development? - # Rollbar.error full_message, { exception_type: e.class.name, backtrace: backtrace } end def report_bad_source_error(e) diff --git a/app/views/pages/privacy.html.erb b/app/views/pages/privacy.html.erb index 1eb2fbc1a..0f3193a13 100644 --- a/app/views/pages/privacy.html.erb +++ b/app/views/pages/privacy.html.erb @@ -72,7 +72,7 @@

Log Files

PlaceCal.org's hosting server follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this as a part of hosting services’ analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp. These are not linked to any information that is personally identifiable.

-

PlaceCal uses an error logging service called Rollbar. This service logs errors that may occur while you are browsing the site. These are not linked to any information that is personally identifiable. The purpose of these logs is to ensure the security and operation of the website is as expected and alert us when it is not.

+

PlaceCal uses an error logging service called [Appsignal](https://www.appsignal.com/). This service logs errors that may occur while you are browsing the site. These are not linked to any information that is personally identifiable. The purpose of these logs is to ensure the security and operation of the website is as expected and alert us when it is not.

Cookies, Web Beacons, Analytics Data and Third Party Privacy Policies

diff --git a/config/initializers/rollbar.rb b/config/initializers/rollbar.rb deleted file mode 100644 index e02425cd1..000000000 --- a/config/initializers/rollbar.rb +++ /dev/null @@ -1,60 +0,0 @@ -# frozen_string_literal: true - -Rollbar.configure do |config| - # Without configuration, Rollbar is enabled in all environments. - # To disable in specific environments, set config.enabled=false. - - config.access_token = ENV.fetch('ROLLBAR_ACCESS_TOKEN', nil) - - # Here we'll disable in 'test': - config.enabled = false if Rails.env.development? || Rails.env.test? - - # By default, Rollbar will try to call the `current_user` controller method - # to fetch the logged-in user object, and then call that object's `id`, - # `username`, and `email` methods to fetch those properties. To customize: - # config.person_method = "my_current_user" - # config.person_id_method = "my_id" - # config.person_username_method = "my_username" - # config.person_email_method = "my_email" - - # If you want to attach custom data to all exception and message reports, - # provide a lambda like the following. It should return a hash. - # config.custom_data_method = lambda { {:some_key => "some_value" } } - - # Add exception class names to the exception_level_filters hash to - # change the level that exception is reported at. Note that if an exception - # has already been reported and logged the level will need to be changed - # via the rollbar interface. - # Valid levels: 'critical', 'error', 'warning', 'info', 'debug', 'ignore' - # 'ignore' will cause the exception to not be reported at all. - # config.exception_level_filters.merge!('MyCriticalException' => 'critical') - # - # You can also specify a callable, which will be called with the exception instance. - # config.exception_level_filters.merge!('MyCriticalException' => lambda { |e| 'critical' }) - - # Enable asynchronous reporting (uses girl_friday or Threading if girl_friday - # is not installed) - # config.use_async = true - # Supply your own async handler: - # config.async_handler = Proc.new { |payload| - # Thread.new { Rollbar.process_from_async_handler(payload) } - # } - - # Enable asynchronous reporting (using sucker_punch) - # config.use_sucker_punch - - # Enable delayed reporting (using Sidekiq) - # config.use_sidekiq - # You can supply custom Sidekiq options: - # config.use_sidekiq 'queue' => 'default' - - # If you run your staging application instance in production environment then - # you'll want to override the environment reported by `Rails.env` with an - # environment variable like this: `ROLLBAR_ENV=staging`. This is a recommended - # setup for Heroku. See: - # https://devcenter.heroku.com/articles/deploying-to-a-custom-rails-environment - config.environment = ENV['ROLLBAR_ENV'].presence || Rails.env - - # https://docs.rollbar.com/docs/ruby#exception-level-filters - config.exception_level_filters.merge!('ActionController::RoutingError' => 'ignore') -end