upfluence-utils 0.12.9 → 0.12.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12233490ac89cab19faeb8f472bc5ab0c3ab044b532ec70f6935e5b12b7c0204
|
|
4
|
+
data.tar.gz: 31f174d80c1972eb64526ed4bd61de626ce4223c9b7842139a8920d344b043a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f6bc65b8e596e2c8b77f5f8902b9a3643470608fbf10962e1c5bd027c3b24c72f7ebe8b67e763d97939c7bc8460c4eac5a55cb09dcd7dbd6f5726696bde1244
|
|
7
|
+
data.tar.gz: a72ff7ef5ca46b2e66724316da642a8276d1e844f1d314c1e3dffe615d35f6c2b05a6a23a515f56f746d12eb054961b495975eaaf744a49e561fdf08c50f248b
|
|
@@ -4,10 +4,7 @@ module Upfluence
|
|
|
4
4
|
module ErrorLogger
|
|
5
5
|
class Sentry
|
|
6
6
|
EXCLUDED_ERRORS = (
|
|
7
|
-
::Sentry::Configuration::IGNORE_DEFAULT + [
|
|
8
|
-
'Identity::Thrift::Forbidden',
|
|
9
|
-
'ActiveRecord::RecordNotFound'
|
|
10
|
-
]
|
|
7
|
+
::Sentry::Configuration::IGNORE_DEFAULT + ['ActiveRecord::RecordNotFound']
|
|
11
8
|
)
|
|
12
9
|
MAX_TAG_SIZE = 8 * 1024
|
|
13
10
|
|
|
@@ -77,7 +74,7 @@ module Upfluence
|
|
|
77
74
|
end
|
|
78
75
|
|
|
79
76
|
def middleware
|
|
80
|
-
|
|
77
|
+
RackMiddleware
|
|
81
78
|
end
|
|
82
79
|
|
|
83
80
|
def ignore_exception(*klss)
|
|
@@ -93,6 +90,16 @@ module Upfluence
|
|
|
93
90
|
end
|
|
94
91
|
end
|
|
95
92
|
|
|
93
|
+
class RackMiddleware < ::Sentry::Rack::CaptureExceptions
|
|
94
|
+
def capture_exception(exception, env)
|
|
95
|
+
if env.key? 'sinatra.error'
|
|
96
|
+
return if Sinatra::Base.errors.keys.any? { |klass| exception.is_a?(klass) }
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
super(exception, env)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
96
103
|
private
|
|
97
104
|
|
|
98
105
|
def prepare_extra(tags)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: upfluence-utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.12.
|
|
4
|
+
version: 0.12.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Upfluence
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|