From d875ba7344de5cc7dd73e99b61d956900cc453dd Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Fri, 27 Oct 2023 13:14:52 -0500 Subject: [PATCH] set up sentry to eras --- Gemfile | 2 ++ Gemfile.lock | 7 +++++++ config/credentials/production.yml.enc | 2 +- config/credentials/staging.yml.enc | 2 +- config/initializers/sentry.rb | 7 +++++++ 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 config/initializers/sentry.rb diff --git a/Gemfile b/Gemfile index ab28f7a..84a975b 100644 --- a/Gemfile +++ b/Gemfile @@ -32,6 +32,8 @@ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] group :production, :staging do gem 'newrelic_rpm' + gem 'sentry-ruby' + gem 'sentry-rails' end group :development, :test do diff --git a/Gemfile.lock b/Gemfile.lock index f2b2326..979d4e4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -251,6 +251,11 @@ GEM parser (>= 3.2.1.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) + sentry-rails (5.12.0) + railties (>= 5.0) + sentry-ruby (~> 5.12.0) + sentry-ruby (5.12.0) + concurrent-ruby (~> 1.0, >= 1.0.2) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) @@ -290,6 +295,8 @@ DEPENDENCIES rails (~> 7.0, >= 7.0.4.3) rspec-rails rubocop + sentry-rails + sentry-ruby simplecov spring tzinfo-data diff --git a/config/credentials/production.yml.enc b/config/credentials/production.yml.enc index 4716960..9e0b707 100644 --- a/config/credentials/production.yml.enc +++ b/config/credentials/production.yml.enc @@ -1 +1 @@ -GtE58fB13AnMW/+89XPhgiKcTskECH0NtbKQQu/nAtMeI6Lj4qs6tzDU3ecfZgnO3HcD2qlpmvMia9vVZ+sjW+fmSwBxhPx4Y5J/Pw+ZvU8b+P70tOBjNvDrv78YDK/eA4xSDJKk/aclKkmnI36Xiz2M41enTWdnsCxXvCpbzeFGcAdecPT6w+DaxJZbyNhw6XG6wkgeY+HfmTJAJ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KaerBv0utnMhmST3mcNtAeAEzWcw/j8TztMqvaFowmp5+lo0jNJR4wNOUQaT7XiOtRFZfA6i9T0gUtqAz+gZxJshRarYpbKUb703PvQ4WAsh2Fs9g+v0PPuW2sSK6tfEzn84c9EQUCeQVKTeATsQlXAGuO9vYdKTw0ahnJzdFfql5LXUH7VJ+12cNbOanjVFjykcs3qY2N69PK1/ESAPqkyK8Fe0fosfAepUVm3rd7VLNMc2qGdWAxTAfdj59xYNaGU97+xRSATBMUdsGNoFcyv7WTUUxcn01Qz9WqyLdCzyIABEwvcXWtc3pNJ3U7bwC0fsqQkL+zqt883eYGDxU4Mn0H5IX21OfqTYDuPB3mQltuQe2KUq2KZcCLtBVce0nRGKx82dEhnjP+PRWk7moCsG8eyNqqi1i1ZqZcDemPTXL48+IgCLfmMYju7uDWTM5OWG9e+TWEqUowwUV+Gp5AoGKUt/DtfityIQmdJde7+6YaxYDsDEKZfP6na4C2Zyt6qXtCWYIBXo8sEuEE7j38lrWFgNODc8k53PgSBp6R0lPjzw5/U9HPzBKmkn705JdfRN5kYbKVpCPOQqMpjYU1jSWpqdO4ZgobEWT5n3XtHCuV6oO/P5t2lbwm+mVuVotrjv3p7/x+CbN+nTvA9Kma7mOdK8FMrQlqXD/FpnSvSLuO5/3Q7LltdKF3njmmUmsqFnbpXOaxKpgDb+ijeuwndEZ1hvyLepcxahBevbOS+ZOtdWHmfGhTlZ4uCgbgAXJ04FH8xFrf1/VG4GtMHuapT6tlJcxqBer4--8e7ThvhXjefdpI+0--QG+VUWhyp9cydSvpzydc0w== \ No newline at end of file diff --git a/config/credentials/staging.yml.enc b/config/credentials/staging.yml.enc index 8d13d9f..cef913a 100644 --- a/config/credentials/staging.yml.enc +++ b/config/credentials/staging.yml.enc @@ -1 +1 @@ -HhrqWcDvmPU394rGy19dkSuTjV3PNS1itP79kJPhjJftooSh66OaMjM+fqJlcyYTh9p7c5W8oWIDkvhslvUwsngh5hLPHdKhm/HAikyleejdiRlenr6PPrdDu+wO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SqrwApUqR+xh4botEBiAszCXo85SAyj0l30ZNP35exd1aIYqri/685fSGQyc7UjJweb1bTeXqkYysE4+oreiukGXU/ezQbtYl/+Znax1hnUX1VApY/w0z2i2/cMXGhvq8f1B/QbzAKDWvQOqTzl2E0F51Hi07qUqbZxqkvA18OGg5dMq0/c6Vd6G9b69rRkW+XSb06Xnre8c6toUj94UEjpLgtGxHJLo7ZVCkDDVdtTCc3/Bm9IPsiG1QQyRvvmzVXYLNLL5Kw/W8HqtYsFXJz6RRp6Z1SV/6Bg6B8SPSCl63yk3U3U2oKbx+XbIFCy0CFCRBIfUdoBrwwBzaBOU74XP6VAtXEm3b/FIaKkTx2NBYNta7lx9aMMJTPs3hXKc4boETv325J5lgHToY14KsdtqIko4plhytFF8oJOjyrklAf5gwqXuJ4DdKyl7kDfE8s4EzhoqBivu7FlyT0W3NQTBwyV2ySYI6L0xZQl3ElvDZDu5C0so1BeclE7+Y+KC3Ggky3f6m2M5/oXejFzy7n4P9hkJgA/9OlpfVBQJ/l7vrapeDCtq2Z7JB5g8Ksp21VsC6Kp/ARcIa0H69GmfKJfcpHpAzLdfbjc7QkDtP6ob/Ni4q/DTgHy++gLQQDbHYg+4kyhnuu+4ty/3lMQMzjcnSKQkHae9f/UZLNJSYtUBsdnXue6mtUE2860Qc4UlcZbTC8jdlCczHY5ITrmlcirezCoRT2Yocq/i4KNh64BHIS0ffWPPA1sNKWznE2EY+0d7QlOMI5y6SyxYuFcmQ+c4X+pK5H/YxqYwuA18w1hZwYIx9Reczg==--FlO8o/Jn2tWu+niN--ckrShF0Yhf3IiDHwwt3xVw== \ No newline at end of file diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb new file mode 100644 index 0000000..6b62ffa --- /dev/null +++ b/config/initializers/sentry.rb @@ -0,0 +1,7 @@ +Sentry.init do |config| + config.dsn = Rails.application.credentials.sentry_dsn + config.breadcrumbs_logger = [:active_support_logger, :http_logger] + config.environment = Rails.env + + config.traces_sample_rate = 0.25 +end \ No newline at end of file