Skip to content

Commit 18085be

Browse files
authored
Sentry Integration (#336)
* Add Sentry Integration Sentry DSN should be configurable with an ENV variable * Bundle * Bump patch version of Ruby * Updated dependencies with `bundle update rails` * More conservative bundle update rails
1 parent 90efa4d commit 18085be

File tree

7 files changed

+148
-107
lines changed

7 files changed

+148
-107
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ ORGANIZATION_LOGIN=<INSERT-HERE>
22
GITHUB_APP_ID=<INSERT-HERE>
33
GITHUB_APP_SECRET=<INSERT-HERE>
44
NEW_RELIC_LICENSE_KEY=<INSERT-HERE>
5+
SENTRY_DSN=<INSERT-HERE>

.github/workflows/tests-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Ruby
3636
uses: ruby/setup-ruby@v1
3737
with:
38-
ruby-version: "3.2.2"
38+
ruby-version: "3.2.3"
3939

4040
- name: Build App
4141
run: |

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Ruby
3636
uses: ruby/setup-ruby@v1
3737
with:
38-
ruby-version: "3.2.2"
38+
ruby-version: "3.2.3"
3939
bundler-cache: true
4040

4141
- name: Build App

Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def next?
44
File.basename(__FILE__) == "Gemfile.next"
55
end
66

7-
ruby "3.2.2"
7+
ruby "3.2.3"
88

99
git_source(:github) do |repo_name|
1010
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
@@ -16,7 +16,7 @@ if next?
1616
# to make it work with ruby 3.1
1717
# read more about it here: https://github.com/rails/rails/issues/43998,
1818
# and here: https://gist.github.com/claudiug/bdc2fb70b10d19513208c816588aed92
19-
gem "rails", github: "rails/rails", branch: "main"
19+
gem "rails", "~> 7.2.0"
2020
else
2121
gem "rails", "~> 7.1.0"
2222
end
@@ -64,6 +64,9 @@ gem "rack-mini-profiler"
6464
group :production do
6565
gem "newrelic_rpm"
6666
gem "terser"
67+
gem "stackprof"
68+
gem "sentry-ruby"
69+
gem "sentry-rails"
6770
end
6871

6972
group :development, :test do

Gemfile.lock

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ GEM
215215
next_rails (1.3.0)
216216
colorize (>= 0.8.1)
217217
nio4r (2.7.0)
218+
nokogiri (1.16.2-arm64-darwin)
219+
racc (~> 1.4)
218220
nokogiri (1.16.2-x86_64-darwin)
219221
racc (~> 1.4)
220222
nokogiri (1.16.2-x86_64-linux)
@@ -375,6 +377,12 @@ GEM
375377
rexml (~> 3.2, >= 3.2.5)
376378
rubyzip (>= 1.2.2, < 3.0)
377379
websocket (~> 1.0)
380+
sentry-rails (5.22.1)
381+
railties (>= 5.0)
382+
sentry-ruby (~> 5.22.1)
383+
sentry-ruby (5.22.1)
384+
bigdecimal
385+
concurrent-ruby (~> 1.0, >= 1.0.2)
378386
shoulda-matchers (3.1.3)
379387
activesupport (>= 4.0.0)
380388
simplecov (0.22.0)
@@ -394,6 +402,7 @@ GEM
394402
actionpack (>= 5.2)
395403
activesupport (>= 5.2)
396404
sprockets (>= 3.0.0)
405+
stackprof (0.2.26)
397406
standard (1.31.1)
398407
language_server-protocol (~> 3.17.0.2)
399408
lint_roller (~> 1.0)
@@ -442,6 +451,7 @@ GEM
442451
zeitwerk (2.6.12)
443452

444453
PLATFORMS
454+
arm64-darwin-23
445455
x86_64-darwin-21
446456
x86_64-darwin-22
447457
x86_64-linux
@@ -479,9 +489,12 @@ DEPENDENCIES
479489
redcarpet (~> 3.5.1)
480490
rspec-rails (~> 6.0.3)
481491
sass-rails (~> 5.0)
492+
sentry-rails
493+
sentry-ruby
482494
shoulda-matchers (~> 3.1)
483495
simplecov
484496
spring (= 3.0.0)
497+
stackprof
485498
standardrb
486499
terser
487500
turbolinks (~> 5)
@@ -490,7 +503,7 @@ DEPENDENCIES
490503
webdrivers
491504

492505
RUBY VERSION
493-
ruby 3.2.2p53
506+
ruby 3.2.3p157
494507

495508
BUNDLED WITH
496509
2.4.13

0 commit comments

Comments
 (0)