Skip to content

Commit

Permalink
Merge branch 'kaigionrails' into kaigionrails2024
Browse files Browse the repository at this point in the history
  • Loading branch information
unasuke committed Jun 17, 2024
2 parents 630cb15 + 3249881 commit ec107a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 9 additions & 2 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Sentry.init do |config|
config.dsn = ENV['SENTRY_DSN']
# https://docs.sentry.io/platforms/ruby/guides/rails/
Sentry.init do |config|
config.dsn = ENV["SENTRY_DSN"]
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
config.environment = ENV.fetch("SENTRY_ENV", Rails.env)

# To activate performance monitoring, set one of these options.
# We recommend adjusting the value in production:
config.traces_sample_rate = 0.0
end
8 changes: 8 additions & 0 deletions deploy/task_definition.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
name: 'RAILS_SERVE_STATIC_FILES',
value: 'enabled',
},
{
name: 'SENTRY_ENV',
value: 'production',
},
],
secrets: [
{
Expand Down Expand Up @@ -133,6 +137,10 @@
name: 'SLACK_WEBHOOK_URL',
valueFrom: $.parameterStoreArn('SLACK_WEBHOOK_URL'),
},
{
name: 'SENTRY_DSN',
valueFrom: $.parameterStoreArn('SENTRY_DSN'),
},
{
name: 'TITO_API_TOKEN',
valueFrom: $.parameterStoreArn('TITO_API_TOKEN'),
Expand Down

0 comments on commit ec107a7

Please sign in to comment.