Skip to content

Commit

Permalink
chore: remove sentry transaction performance tracer (#1641)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Feb 22, 2024
1 parent 8514413 commit 780f081
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
Sentry.init do |config|
config.dsn = ENV["SENTRY_DSN"]
config.breadcrumbs_logger = [:active_support_logger, :http_logger]

# Set tracesSampleRate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production
config.traces_sample_rate = ENV.fetch("SENTRY_SAMPLE_RATE", 1.0).to_f
config.traces_sampler = lambda do |context|
true
end
config.breadcrumbs_logger = %i[active_support_logger http_logger]
config.logger = Logger.new(STDERR)
config.enabled_environments = %w[production staging]
end

0 comments on commit 780f081

Please sign in to comment.