Skip to content

Commit

Permalink
Sentry Integration (#336)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
etagwerker authored Jan 9, 2025
1 parent 90efa4d commit 18085be
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 107 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ ORGANIZATION_LOGIN=<INSERT-HERE>
GITHUB_APP_ID=<INSERT-HERE>
GITHUB_APP_SECRET=<INSERT-HERE>
NEW_RELIC_LICENSE_KEY=<INSERT-HERE>
SENTRY_DSN=<INSERT-HERE>
2 changes: 1 addition & 1 deletion .github/workflows/tests-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
ruby-version: "3.2.3"

- name: Build App
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
ruby-version: "3.2.3"
bundler-cache: true

- name: Build App
Expand Down
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def next?
File.basename(__FILE__) == "Gemfile.next"
end

ruby "3.2.2"
ruby "3.2.3"

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
Expand All @@ -16,7 +16,7 @@ if next?
# to make it work with ruby 3.1
# read more about it here: https://github.com/rails/rails/issues/43998,
# and here: https://gist.github.com/claudiug/bdc2fb70b10d19513208c816588aed92
gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.2.0"
else
gem "rails", "~> 7.1.0"
end
Expand Down Expand Up @@ -64,6 +64,9 @@ gem "rack-mini-profiler"
group :production do
gem "newrelic_rpm"
gem "terser"
gem "stackprof"
gem "sentry-ruby"
gem "sentry-rails"
end

group :development, :test do
Expand Down
15 changes: 14 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ GEM
next_rails (1.3.0)
colorize (>= 0.8.1)
nio4r (2.7.0)
nokogiri (1.16.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.2-x86_64-linux)
Expand Down Expand Up @@ -375,6 +377,12 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sentry-rails (5.22.1)
railties (>= 5.0)
sentry-ruby (~> 5.22.1)
sentry-ruby (5.22.1)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
shoulda-matchers (3.1.3)
activesupport (>= 4.0.0)
simplecov (0.22.0)
Expand All @@ -394,6 +402,7 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
stackprof (0.2.26)
standard (1.31.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
Expand Down Expand Up @@ -442,6 +451,7 @@ GEM
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-23
x86_64-darwin-21
x86_64-darwin-22
x86_64-linux
Expand Down Expand Up @@ -479,9 +489,12 @@ DEPENDENCIES
redcarpet (~> 3.5.1)
rspec-rails (~> 6.0.3)
sass-rails (~> 5.0)
sentry-rails
sentry-ruby
shoulda-matchers (~> 3.1)
simplecov
spring (= 3.0.0)
stackprof
standardrb
terser
turbolinks (~> 5)
Expand All @@ -490,7 +503,7 @@ DEPENDENCIES
webdrivers

RUBY VERSION
ruby 3.2.2p53
ruby 3.2.3p157

BUNDLED WITH
2.4.13
Loading

0 comments on commit 18085be

Please sign in to comment.