kubelink 0.1.16 → 1.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kubelink.gemspec +4 -3
- data/lib/kubelink/sentry.rb +10 -9
- data/lib/kubelink/version.rb +1 -1
- metadata +26 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d24385026aadeedeabd60aff9b7426d9eed13852213bae992c414334d1f4979
|
4
|
+
data.tar.gz: 1bb73d08638086d633c806d0351bb7153045ec032f31a51dcde4fbb1e24a6652
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5a81a7d52ccced7b3923e4ae49deaa8d51fee118de9975b33869df3e860bd8a7defb6c7b52f759a39d4e9e7b83f9e019c672972f7e2c9651f800d05b54d9ecc
|
7
|
+
data.tar.gz: c01c6a54d1703f3b16878b02438a95d8be57cee198b1d42af90d37deab4c13df7baf5d5bc2d1bc309f7f6420b91680af4f359fa9b52f9e895c96ea22605ee63b
|
data/kubelink.gemspec
CHANGED
@@ -26,10 +26,11 @@ Gem::Specification.new do |s|
|
|
26
26
|
|
27
27
|
s.add_dependency 'activesupport', '>= 5.1', '< 7'
|
28
28
|
s.add_dependency 'lograge', '~> 0.11.2'
|
29
|
-
s.add_dependency 'prometheus_exporter', '~> 0.
|
29
|
+
s.add_dependency 'prometheus_exporter', '~> 0.7.0'
|
30
30
|
s.add_dependency 'rails', '>= 5.1', '< 7'
|
31
|
-
s.add_dependency 'sentry-
|
31
|
+
s.add_dependency 'sentry-rails', '~> 4.5.1'
|
32
|
+
s.add_dependency 'sentry-ruby', '~> 4.5.1'
|
32
33
|
|
33
|
-
s.add_development_dependency 'bundler', '~> 2.
|
34
|
+
s.add_development_dependency 'bundler', '~> 2.2'
|
34
35
|
s.add_development_dependency 'rake', '~> 12.3'
|
35
36
|
end
|
data/lib/kubelink/sentry.rb
CHANGED
@@ -7,8 +7,8 @@ module Kubelink
|
|
7
7
|
u = URI.parse(ENV['SENTRY_DSN'])
|
8
8
|
u.password = nil
|
9
9
|
u.to_s
|
10
|
-
|
11
|
-
|
10
|
+
rescue StandardError
|
11
|
+
nil
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -18,11 +18,12 @@ module Kubelink
|
|
18
18
|
end
|
19
19
|
|
20
20
|
if Sentry.sentry_dsn
|
21
|
-
|
22
|
-
|
23
|
-
Raven.configure do |config|
|
21
|
+
Sentry.init do |config|
|
22
|
+
config.breadcrumbs_logger = [:active_support_logger]
|
24
23
|
config.dsn = Sentry.sentry_dsn
|
25
24
|
config.release = ENV['RAILS_COMMIT'] if ENV.key?('RAILS_COMMIT')
|
25
|
+
config.send_default_pii = true
|
26
|
+
config.traces_sample_rate = 1.0
|
26
27
|
end
|
27
28
|
|
28
29
|
ActiveSupport.on_load :action_controller do
|
@@ -50,12 +51,12 @@ module Kubelink
|
|
50
51
|
extend ActiveSupport::Concern
|
51
52
|
|
52
53
|
included do
|
53
|
-
before_action :
|
54
|
+
before_action :set_sentry_context
|
54
55
|
end
|
55
56
|
|
56
|
-
def
|
57
|
-
|
58
|
-
|
57
|
+
def set_sentry_context
|
58
|
+
Sentry.set_extras(params: params.dup.permit!.to_hash, url: request.url)
|
59
|
+
Sentry.set_user(ip_address: request.remote_ip)
|
59
60
|
end
|
60
61
|
end
|
61
62
|
end
|
data/lib/kubelink/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubelink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martino di Filippo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.7.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.
|
60
|
+
version: 0.7.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rails
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,33 +79,47 @@ dependencies:
|
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '7'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name: sentry-
|
82
|
+
name: sentry-rails
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
87
|
+
version: 4.5.1
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
94
|
+
version: 4.5.1
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: sentry-ruby
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 4.5.1
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 4.5.1
|
95
109
|
- !ruby/object:Gem::Dependency
|
96
110
|
name: bundler
|
97
111
|
requirement: !ruby/object:Gem::Requirement
|
98
112
|
requirements:
|
99
113
|
- - "~>"
|
100
114
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.
|
115
|
+
version: '2.2'
|
102
116
|
type: :development
|
103
117
|
prerelease: false
|
104
118
|
version_requirements: !ruby/object:Gem::Requirement
|
105
119
|
requirements:
|
106
120
|
- - "~>"
|
107
121
|
- !ruby/object:Gem::Version
|
108
|
-
version: 2.
|
122
|
+
version: '2.2'
|
109
123
|
- !ruby/object:Gem::Dependency
|
110
124
|
name: rake
|
111
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,11 +172,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
172
|
version: 2.3.0
|
159
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
174
|
requirements:
|
161
|
-
- - "
|
175
|
+
- - ">"
|
162
176
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
177
|
+
version: 1.3.1
|
164
178
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
179
|
+
rubygems_version: 3.2.15
|
166
180
|
signing_key:
|
167
181
|
specification_version: 4
|
168
182
|
summary: Integrate a Rails app with our Kubernetes environment
|