Prepare Profiling with Sentry
This commit is contained in:
3
Gemfile
3
Gemfile
@ -55,7 +55,8 @@ gem 'zxcvbn-ruby', require: 'zxcvbn'
|
||||
|
||||
# Error Tracing
|
||||
gem 'mnemosyne-ruby'
|
||||
gem 'sentry-rails'
|
||||
gem 'stackprof' # Must be loaded before the Sentry SDK.
|
||||
gem 'sentry-rails' # rubocop:disable Bundler/OrderedGems
|
||||
gem 'sentry-ruby'
|
||||
|
||||
group :development do
|
||||
|
16
Gemfile.lock
16
Gemfile.lock
@ -271,7 +271,7 @@ GEM
|
||||
pagedown-bootstrap-rails (2.1.4)
|
||||
railties (> 3.1)
|
||||
parallel (1.23.0)
|
||||
parser (3.2.2.0)
|
||||
parser (3.2.2.1)
|
||||
ast (~> 2.4.1)
|
||||
pg (1.5.1)
|
||||
prometheus_exporter (2.0.8)
|
||||
@ -290,7 +290,7 @@ GEM
|
||||
pundit (2.3.0)
|
||||
activesupport (>= 3.0.0)
|
||||
racc (1.6.2)
|
||||
rack (2.2.6.4)
|
||||
rack (2.2.7)
|
||||
rack-mini-profiler (3.1.0)
|
||||
rack (>= 1.2.0)
|
||||
rack-proxy (0.7.6)
|
||||
@ -357,9 +357,9 @@ GEM
|
||||
rspec-mocks (~> 3.12.0)
|
||||
rspec-collection_matchers (1.2.0)
|
||||
rspec-expectations (>= 2.99.0.beta1)
|
||||
rspec-core (3.12.1)
|
||||
rspec-core (3.12.2)
|
||||
rspec-support (~> 3.12.0)
|
||||
rspec-expectations (3.12.2)
|
||||
rspec-expectations (3.12.3)
|
||||
diff-lcs (>= 1.2.0, < 2.0)
|
||||
rspec-support (~> 3.12.0)
|
||||
rspec-github (2.4.0)
|
||||
@ -422,10 +422,10 @@ GEM
|
||||
rubyzip (>= 1.2.2, < 3.0)
|
||||
websocket (~> 1.0)
|
||||
semantic_range (3.0.0)
|
||||
sentry-rails (5.8.0)
|
||||
sentry-rails (5.9.0)
|
||||
railties (>= 5.0)
|
||||
sentry-ruby (~> 5.8.0)
|
||||
sentry-ruby (5.8.0)
|
||||
sentry-ruby (~> 5.9.0)
|
||||
sentry-ruby (5.9.0)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
set (1.0.3)
|
||||
shakapacker (6.6.0)
|
||||
@ -466,6 +466,7 @@ GEM
|
||||
activesupport (>= 5.2)
|
||||
sprockets (>= 3.0.0)
|
||||
ssrf_filter (1.1.1)
|
||||
stackprof (0.2.25)
|
||||
telegraf (2.1.1)
|
||||
influxdb
|
||||
temple (0.10.0)
|
||||
@ -586,6 +587,7 @@ DEPENDENCIES
|
||||
slim-rails
|
||||
sorcery
|
||||
sprockets-rails
|
||||
stackprof
|
||||
telegraf
|
||||
terser
|
||||
tubesock
|
||||
|
@ -4,6 +4,8 @@ Sentry.init do |config|
|
||||
config.send_modules = true
|
||||
config.include_local_variables = true
|
||||
config.breadcrumbs_logger = %i[sentry_logger monotonic_active_support_logger http_logger]
|
||||
# Enable Profiling: https://docs.sentry.io/platforms/ruby/guides/profiling/
|
||||
# config.profiles_sample_rate = 1.0
|
||||
|
||||
# Set tracesSampleRate to 1.0 to capture 100%
|
||||
# of transactions for performance monitoring.
|
||||
|
Reference in New Issue
Block a user