Skip to content

Commit

Permalink
Set up profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Feb 19, 2024
1 parent 0821de7 commit 00ccf75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Sentry.init do |config|
config.dsn = ENV.fetch("SENTRY_DSN", nil)
config.traces_sample_rate = ENV.fetch("SENTRY_TRACES_SAMPLE_RATE", "0.5").to_f
config.profiles_sample_rate = ENV.fetch("SENTRY_PROFILES_SAMPLE_RATE", "0.5").to_f
config.environment = ENV["HEROKU_APP_NAME"].presence || "production"

config.breadcrumbs_logger = [:active_support_logger]
Expand Down

0 comments on commit 00ccf75

Please sign in to comment.