Skip to content

Commit

Permalink
Enable tracing by default
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Apr 14, 2024
1 parent a5baf1e commit d9c2ae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sentry-rails/lib/generators/sentry_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def copy_initializer_file
Sentry.init do |config|
config.breadcrumbs_logger = [:active_support_logger]
config.dsn = #{dsn}
config.enable_tracing = true
end
RUBY
end
Expand Down
2 changes: 2 additions & 0 deletions sentry-rails/spec/sentry/generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
Sentry.init do |config|
config.breadcrumbs_logger = [:active_support_logger]
config.dsn = ENV['SENTRY_DSN']
config.enable_tracing = true
end
RUBY
end
Expand All @@ -39,6 +40,7 @@
Sentry.init do |config|
config.breadcrumbs_logger = [:active_support_logger]
config.dsn = 'foobarbaz'
config.enable_tracing = true
end
RUBY
end
Expand Down

0 comments on commit d9c2ae7

Please sign in to comment.