Remove Sentry
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -58,7 +58,6 @@ gem "omdb-api", "1.4.3", require: false
|
||||
gem "image_processing", "~> 1.0"
|
||||
gem "onnxruntime"
|
||||
gem "mini_magick"
|
||||
gem "sentry-ruby"
|
||||
|
||||
gem "whenever", require: false
|
||||
|
||||
@@ -84,6 +83,7 @@ group :development do
|
||||
gem "capistrano-systemd-multiservice"
|
||||
gem "capistrano-rbenv", "~> 2.2"
|
||||
gem "capistrano3-puma", github: "seuros/capistrano-puma"
|
||||
gem "vernier"
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
@@ -446,8 +446,6 @@ GEM
|
||||
sanitize (6.1.0)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.12.0)
|
||||
sentry-ruby (5.16.1)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
sequel (5.78.0)
|
||||
bigdecimal
|
||||
shellany (0.0.1)
|
||||
@@ -492,6 +490,7 @@ GEM
|
||||
unicode-version (~> 1.0)
|
||||
unicode-version (1.4.0)
|
||||
uri (0.13.0)
|
||||
vernier (0.5.1)
|
||||
version_gem (1.1.3)
|
||||
warning (1.3.0)
|
||||
whenever (1.0.0)
|
||||
@@ -572,12 +571,12 @@ DEPENDENCIES
|
||||
ruby-readability
|
||||
sanitize
|
||||
scraperd!
|
||||
sentry-ruby
|
||||
slim
|
||||
standardrb
|
||||
time_math2
|
||||
timecop
|
||||
unicode-emoji
|
||||
vernier
|
||||
warning
|
||||
whenever
|
||||
|
||||
|
@@ -14,8 +14,7 @@ module Adamantium
|
||||
"settings",
|
||||
"view_cache.cacher",
|
||||
not_found_view: "views.not_found",
|
||||
error_view: "views.error",
|
||||
sentry: "sentry.client"]
|
||||
error_view: "views.error"]
|
||||
|
||||
include Dry::Matcher.for(:handle, with: Dry::Matcher::ResultMatcher)
|
||||
include Dry::Monads[:result]
|
||||
@@ -35,8 +34,6 @@ module Adamantium
|
||||
def handle_error(req, res, exception)
|
||||
raise exception if settings.raise_exceptions
|
||||
|
||||
sentry.capture_exception(exception)
|
||||
|
||||
res.status = 500
|
||||
res.render error_view
|
||||
res.headers["Cache-Control"] = "no-store, max-age=0"
|
||||
|
@@ -32,7 +32,6 @@ module Adamantium
|
||||
"post_utilities.slugify",
|
||||
"post_utilities.link_finder",
|
||||
"post_utilities.page_cacher",
|
||||
"sentry.client",
|
||||
"syndication.dayone",
|
||||
"syndication.mastodon",
|
||||
"syndication.blue_sky",
|
||||
|
@@ -1,14 +0,0 @@
|
||||
require "sentry-ruby"
|
||||
|
||||
Hanami.app.register_provider :sentry, namespace: true do
|
||||
prepare do
|
||||
Sentry.init do |config|
|
||||
config.dsn = target["settings"].sentry_dsn
|
||||
config.traces_sample_rate = 0.25
|
||||
end
|
||||
end
|
||||
|
||||
start do
|
||||
register "client", Sentry
|
||||
end
|
||||
end
|
@@ -70,7 +70,6 @@ module Adamantium
|
||||
setting :basic_auth_username, default: nil
|
||||
setting :basic_auth_password, default: nil
|
||||
|
||||
setting :sentry_dsn, default: nil
|
||||
setting :raise_exceptions, default: true
|
||||
|
||||
setting :gist_client_token, default: nil
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,7 @@ module Micropub
|
||||
include Deps["logger",
|
||||
"settings",
|
||||
not_found_view: "views.not_found",
|
||||
error_view: "views.error",
|
||||
sentry: "sentry.client"]
|
||||
error_view: "views.error"]
|
||||
|
||||
include Dry::Matcher.for(:handle, with: Dry::Matcher::ResultMatcher)
|
||||
include Dry::Monads[:result]
|
||||
@@ -49,8 +48,6 @@ module Micropub
|
||||
def handle_error(req, res, exception)
|
||||
raise exception if settings.raise_exceptions
|
||||
|
||||
sentry.capture_exception(exception)
|
||||
|
||||
res.status = 500
|
||||
res.render error_view
|
||||
res.headers["Cache-Control"] = "no-store, max-age=0"
|
||||
|
Reference in New Issue
Block a user