sentry_top_errors 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry_top_errors/sentry_client.rb +7 -1
- data/senrty_top_errors.gemspec +2 -2
- data/templates/index.html +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85d7e8c31e2d05d9656d56ef2b7772101e4f3a45dad3bff3041b8bdb50a8a873
|
4
|
+
data.tar.gz: a98cc9026ff10f282b4598ca825ea935466a2cbdc79a02ae06a0e61bfe6738db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 365eda21f07813774ec02a3be479fb0810c8962590952d1ff85b2c5611f9db34b60a49a6947bcc5b26fabeec3eabaec4495ee4da2df0a27607c443c9174b252d
|
7
|
+
data.tar.gz: 65cebd016ab9e06d60b6f9ac74e73ae85455527150455fcb522108149f96233110dfeefae794ae4cbb188c1dca3b165e07f06d00769561e70122ba054d4c8786
|
@@ -13,12 +13,18 @@ class SentryTopErrors::SentryClient
|
|
13
13
|
@enable_cache = enable_cache
|
14
14
|
end
|
15
15
|
|
16
|
-
def http(method, path, options = {})
|
16
|
+
def http(method, path, options = {}, retry_count = 0)
|
17
17
|
@conn ||= Excon.new(SENTRY_HOST, HTTP_OPTIONNS)
|
18
18
|
options[:headers] ||= {}
|
19
19
|
options[:headers]['Authorization'] ||= "Bearer #{@sentry_key}"
|
20
20
|
response = @conn.request({method: method, path: path}.merge(options))
|
21
21
|
|
22
|
+
# status 429 = too many requests
|
23
|
+
if response.status == 429 && retry_count < 4
|
24
|
+
sleep(0.2)
|
25
|
+
return http(method, path, options, retry_count + 1)
|
26
|
+
end
|
27
|
+
|
22
28
|
SentryTopErrors::ApiResponse.new_from_res(response)
|
23
29
|
end
|
24
30
|
|
data/senrty_top_errors.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "sentry_top_errors"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.5"
|
4
4
|
s.summary = "Generate top errors report for sentry"
|
5
5
|
s.description = ""
|
6
6
|
s.author = "Pavel Evstigneev"
|
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.files = `git ls-files`.split("\n")
|
11
11
|
s.licenses = ['MIT', 'GPL-2.0']
|
12
12
|
|
13
|
-
s.add_runtime_dependency 'excon', "~> 0.
|
13
|
+
s.add_runtime_dependency 'excon', "~> 0.102.0"
|
14
14
|
s.add_runtime_dependency 'progress_bar', '>= 1.0.5', '< 2.0.0'
|
15
15
|
end
|
data/templates/index.html
CHANGED
@@ -4,12 +4,15 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
6
|
<title>Sentry Errors</title>
|
7
|
+
<link rel="icon" type="image/png" sizes="16x16" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC20lEQVR4AbzWA6xsRxgA4GfbNmrbtt0GtW3bts2gtm3btu2L/fsledhO3pzde27TSb5g7Jk2/2W4eqOnOjCKyXRt838FjbVjAS7gLT7lTHq0ptKhTKZHjXxd2Z0viSq/s2zZxhfkeb7mVhbK5OvOcfxFJJrZuOw6XklUeZ9lknwdOZwGIsUfLFumAwN5jUi8zKSqfBvzK5HxJsPLdGAY7xIpLqQDY3mFKHBS2fUfwltEih9ZikOJAh8xe9kO9OAxIuM0HiEyGti1tef6HIJUhS0y6d9zHfuzHbtNsRnLMpbO9XZgAxoyO3txNqGZmOIJFmMAFyZpFf7kY25mCwbXsxFfzXRgSeblZ4JvWIABXEoTUaCJp1mN9kWd2J9IcRDj+YzgNpbmfipEnb5hi6IODOdZIvEtW7MJ6zGU7bMjL/Zp2mhn+jOUAazPc/yUjO7YpFwvTud1buU5/iJq+HHqSzYbB3MHr/AOb/EQ6zEve/Aw37LKDGasP2vSl55swSdExmfs3GbKdH5EZHzAJnSlP2vRfwYdWJEvuZttmJUNeYr3p3iThziWeWjXZsqIooY/eJTreIHj6J504OjkJfyWJ1mfoYxgMN1oW13wC6KFGtiWgazGBuzAD0TiCYYU7fbt+J6oU4XHWJGbaeZTxnN4Jv/etd7/dXmJZqJAM1czhHn5muBn5mEJ/iASL6azkDv3O3EvX9FAOpLL6M98PJx0bCMW4Xci8Tfr1vsOdGMW1mRHDpxiV/bgcr4iEmeyWcFteFZrX8jta1wuD3MakfEI3cs2PhPvEQWOZDl+Iki9zdCyHTiaKPAmE+jApQUX2siyX7RXiYzf2awq/8y8TiReZ1CZDizF70SKRo6jU1JmJT5O8l5DhzId2DhzPzRwOj0z5ZbgPn7gVRYpu/4r8idR5TsOoHuNsr2Zg5H/uv9bEv4Z1JB50JruLrQktAdiZnr2fnmhbQYlcHxTEQAAMVAHlDzi5eoAAAAASUVORK5CYII=" />
|
7
8
|
|
8
9
|
<style>
|
9
10
|
body {
|
10
11
|
background: linear-gradient(0deg, rgba(252,217,182,1) 0%, rgba(160,206,219,1) 100%);
|
11
12
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
12
13
|
font-size: 14px;
|
14
|
+
margin: 0;
|
15
|
+
min-height: calc(100vh - 35px);
|
13
16
|
}
|
14
17
|
|
15
18
|
.page-content {
|
@@ -334,7 +337,7 @@
|
|
334
337
|
<script>
|
335
338
|
var generateRow = (issue, table) => {
|
336
339
|
var tr = $.element('tr', {
|
337
|
-
appendTo:
|
340
|
+
appendTo: table,
|
338
341
|
class: issue.is_production ? 'is-prod-issue' : 'is-non-prod-issue',
|
339
342
|
});
|
340
343
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry_top_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Evstigneev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.102.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.102.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: progress_bar
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|