Skip to content

Commit

Permalink
sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 15, 2023
1 parent 48aa9d4 commit ac54514
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ gem 'omniauth-twitch'
gem 'dotenv-rails', groups: [:development, :test]


gem "ruby-openai", "~> 4.2"
gem "qdrant-ruby", "~> 0.9.2"

# gem "plain", path: "/Users/michelson/Documents/rubyonrails/plain"


# sentry

gem "sentry-ruby"
gem "sentry-rails"
gem "sentry-sidekiq"


group :development, :test do
Expand Down
21 changes: 21 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ GEM
faraday (2.7.10)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.0.2)
ffi (1.15.5)
ffi-compiler (1.0.1)
Expand Down Expand Up @@ -308,6 +310,7 @@ GEM
zeitwerk (~> 2.5)
msgpack (1.7.2)
multi_xml (0.6.0)
multipart-post (2.3.0)
net-imap (0.3.6)
date
net-protocol
Expand Down Expand Up @@ -368,6 +371,8 @@ GEM
public_suffix (5.0.3)
puma (5.6.6)
nio4r (~> 2.0)
qdrant-ruby (0.9.3)
faraday (>= 2.0.1, < 3)
racc (1.7.1)
rack (2.2.7)
rack-protection (3.0.6)
Expand Down Expand Up @@ -439,6 +444,9 @@ GEM
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-oembed (0.16.1)
ruby-openai (4.3.2)
faraday (>= 1)
faraday-multipart (>= 1)
ruby-progressbar (1.13.0)
ruby-vips (2.1.4)
ffi (~> 1.12)
Expand All @@ -448,6 +456,14 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sentry-rails (5.10.0)
railties (>= 5.0)
sentry-ruby (~> 5.10.0)
sentry-ruby (5.10.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
sentry-sidekiq (5.10.0)
sentry-ruby (~> 5.10.0)
sidekiq (>= 3.0)
sequel (5.71.0)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
Expand Down Expand Up @@ -564,6 +580,7 @@ DEPENDENCIES
omniauth-twitter
pg (~> 1.1)
puma (~> 5.0)
qdrant-ruby (~> 0.9.2)
rails (~> 7.0.6)
rails_autolink (~> 1.1)
rqrcode (~> 2.0)
Expand All @@ -573,8 +590,12 @@ DEPENDENCIES
rspec-rails!
rspec-support!
ruby-oembed (~> 0.16.1)
ruby-openai (~> 4.2)
rubyzip (~> 2.3)
selenium-webdriver
sentry-rails
sentry-ruby
sentry-sidekiq
sequel (~> 5.71)
shoulda-matchers (~> 5.0)
sidekiq (~> 7.1)
Expand Down
17 changes: 17 additions & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
if ENV['SENTRY_DSN']

Sentry.init do |config|
config.dsn = ENV['SENTRY_DSN']
config.breadcrumbs_logger = [:active_support_logger, :http_logger]

# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
config.traces_sample_rate = 1.0
# or
config.traces_sampler = lambda do |context|
true
end
end

end

0 comments on commit ac54514

Please sign in to comment.