Compare commits

...

2 commits

Author SHA1 Message Date
d8b3f613e3 Fix AccessDenied error handler
I don't think people see this very often visually, but it's showing up
in our error logging! The Rails API changed here long ago and we didn't
notice: to render public files, we should use the `file` argument
instead of `template`.
2024-02-28 13:20:41 -08:00
09090d53ce Migrate from Sentry to self-hosted GlitchTip instance
Trying something new and lightweight and more data-controlled!

I also turned down the sample rate for the performance traces feature,
because we hardly use it right now, and Sentry is always getting mad at
us for vastly exceeding our free plan quota—and like, we're not on
Sentry anymore so I imagine we have more wiggle room with that, but I
figure let's turn down the volume anyway, until we decide we want it.
2024-02-28 13:14:32 -08:00
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ class ApplicationController < ActionController::Base
rescue_from AccessDenied, :with => :on_access_denied
def on_access_denied
render template: 'public/403.html', :layout => false, :status => :forbidden
render file: 'public/403.html', layout: false, status: :forbidden
end
def redirect_back!(default=:back)

View file

@ -1,5 +1,5 @@
Sentry.init do |config|
config.dsn = 'https://cb4b3f56c1ec50ba0667b189617446bb@o506079.ingest.sentry.io/4506180803559424'
config.dsn = 'https://2d3c5b739af149a0b3beb86a4d498e1f@health.openneo.net/1'
config.breadcrumbs_logger = [:active_support_logger, :http_logger]
config.traces_sample_rate = 0.2
config.traces_sample_rate = 0.05
end