File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,8 @@ group :test do
77
77
gem "capybara"
78
78
gem "selenium-webdriver"
79
79
end
80
+
81
+ group :production do
82
+ gem "sentry-ruby"
83
+ gem "sentry-rails"
84
+ end
Original file line number Diff line number Diff line change 374
374
rexml (~> 3.2 , >= 3.2.5 )
375
375
rubyzip (>= 1.2.2 , < 3.0 )
376
376
websocket (~> 1.0 )
377
+ sentry-rails (5.26.0 )
378
+ railties (>= 5.0 )
379
+ sentry-ruby (~> 5.26.0 )
380
+ sentry-ruby (5.26.0 )
381
+ bigdecimal
382
+ concurrent-ruby (~> 1.0 , >= 1.0.2 )
377
383
sidekiq (7.3.9 )
378
384
base64
379
385
connection_pool (>= 2.3.0 )
@@ -489,6 +495,8 @@ DEPENDENCIES
489
495
rails (~> 8.0.2 )
490
496
rubocop-rails-omakase
491
497
selenium-webdriver
498
+ sentry-rails
499
+ sentry-ruby
492
500
sidekiq
493
501
sidekiq-scheduler
494
502
slack-ruby-block-kit (>= 0.24.0 )
Original file line number Diff line number Diff line change 16
16
<%# Includes all stylesheet files in app/assets/stylesheets %>
17
17
<%= stylesheet_link_tag :app , "data-turbo-track" : "reload" %>
18
18
<%= javascript_importmap_tags %>
19
+ <% if Rails . env . production? %>
20
+ <%= Sentry . get_trace_propagation_meta . html_safe %>
21
+ <% end %>
19
22
</ head >
20
23
21
24
< body >
28
31
<% end %>
29
32
</ div >
30
33
<% end %>
31
-
34
+
32
35
<%= yield %>
33
36
</ body >
34
37
</ html >
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ if Rails . env . production?
4
+ Sentry . init do |config |
5
+ config . breadcrumbs_logger = [ :active_support_logger ]
6
+ config . dsn = ENV [ "SENTRY_DSN" ]
7
+ config . traces_sample_rate = 1.0
8
+ end
9
+ end
You can’t perform that action at this time.
0 commit comments