Skip to content

Commit d5c2327

Browse files
authored
Add appsignal and remove sentry (#157)
* Add appsignal and remove sentry * Simplify configuration and rely on automatic deploy marks * Remove scout_apm
1 parent 0e6ec15 commit d5c2327

3 files changed

Lines changed: 5 additions & 18 deletions

File tree

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,16 @@ group :development do
4848
end
4949

5050
group :production do
51+
gem "appsignal"
5152
gem "aws-sdk-s3", require: false
5253
gem 'fog-aws'
5354
# security fix for excon gem, which is a fog-aws dependency
5455
gem 'excon', '>= 0.71.0'
5556
gem 'dalli'
5657
gem 'sendgrid-ruby'
5758
gem 'lograge'
58-
gem 'sentry-raven'
5959
gem 'sidekiq'
6060
gem 'rails_autoscale_agent'
61-
gem 'scout_apm'
6261
gem 'rexml'
6362
gem "whenever", require: false
6463
end

Gemfile.lock

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ GEM
8484
public_suffix (>= 2.0.2, < 7.0)
8585
airbrussh (1.5.3)
8686
sshkit (>= 1.6.1, != 1.7.0)
87+
appsignal (4.7.0)
88+
logger
89+
rack (>= 2.0.0)
8790
ast (2.4.3)
8891
aws-eventstream (1.4.0)
8992
aws-partitions (1.1172.0)
@@ -931,8 +934,6 @@ GEM
931934
google-protobuf (~> 4.31)
932935
sass-embedded (1.94.2-x86_64-linux-musl)
933936
google-protobuf (~> 4.31)
934-
scout_apm (5.7.1)
935-
parser
936937
securerandom (0.4.1)
937938
selenium-webdriver (4.38.0)
938939
base64 (~> 0.2)
@@ -943,8 +944,6 @@ GEM
943944
semantic_range (3.1.0)
944945
sendgrid-ruby (6.7.0)
945946
ruby_http_client (~> 3.4)
946-
sentry-raven (3.1.2)
947-
faraday (>= 1.0)
948947
shakapacker (8.3.0)
949948
activesupport (>= 5.2)
950949
package_json
@@ -1062,6 +1061,7 @@ PLATFORMS
10621061
x86_64-linux-musl
10631062

10641063
DEPENDENCIES
1064+
appsignal
10651065
aws-sdk-s3
10661066
barnes
10671067
byebug
@@ -1092,9 +1092,7 @@ DEPENDENCIES
10921092
redis (~> 4.7.0)
10931093
rexml
10941094
rspec-rails
1095-
scout_apm
10961095
sendgrid-ruby
1097-
sentry-raven
10981096
sidekiq
10991097
web-console
11001098
whenever

app/controllers/decidim_controller.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,4 @@
22
# entry point, but you can change what controller it inherits from
33
# so you can customize some methods.
44
class DecidimController < ApplicationController
5-
before_action :set_raven_context
6-
7-
private
8-
9-
def set_raven_context
10-
return unless Rails.env.production?
11-
12-
Raven.user_context({id: try(:current_user).try(:id)}.merge(session))
13-
Raven.extra_context(params: params.to_unsafe_h, url: request.url)
14-
end
155
end

0 commit comments

Comments
 (0)