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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e73c99c9d55cad9e9f003f0bc47aeed8cfee3e8047fa19c00a3798dc1eb2f048
4
- data.tar.gz: 0ac13dc6510d25888995b1776c727ee9ab476a74e7028ed951fd3c75926da27f
3
+ metadata.gz: 4d24385026aadeedeabd60aff9b7426d9eed13852213bae992c414334d1f4979
4
+ data.tar.gz: 1bb73d08638086d633c806d0351bb7153045ec032f31a51dcde4fbb1e24a6652
5
5
  SHA512:
6
- metadata.gz: 78d8a8a848a5f23acd0a326b26f24b1f2f5751652002675a8d427bb3d99c78fdab2e96ca8ad41ae556492efceb02d1a03c07c57a4c4b530ba28c10b41923a0c7
7
- data.tar.gz: cf6d882a07dc989c9536f6e310f20126aefece1422ce82d5a1ca09d4e00b5b56281869c4e2bb661bc558b43e51cd933b9900727d3afa1bfcff771adcd80faed7
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.5.3'
29
+ s.add_dependency 'prometheus_exporter', '~> 0.7.0'
30
30
  s.add_dependency 'rails', '>= 5.1', '< 7'
31
- s.add_dependency 'sentry-raven', '~> 3.1.1'
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.0.2'
34
+ s.add_development_dependency 'bundler', '~> 2.2'
34
35
  s.add_development_dependency 'rake', '~> 12.3'
35
36
  end
@@ -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
- rescue StandardError
11
- nil
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
- require 'raven'
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 :set_raven_context
54
+ before_action :set_sentry_context
54
55
  end
55
56
 
56
- def set_raven_context
57
- Raven.extra_context(params: params.dup.permit!.to_hash, url: request.url)
58
- Raven.user_context(ip_address: request.remote_ip)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kubelink
4
- VERSION = '0.1.16'
4
+ VERSION = '1.0.0.beta.1'
5
5
  end
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.16
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: 2020-11-14 00:00:00.000000000 Z
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.5.3
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.5.3
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-raven
82
+ name: sentry-rails
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 3.1.1
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: 3.1.1
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.0.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.0.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: '0'
177
+ version: 1.3.1
164
178
  requirements: []
165
- rubygems_version: 3.1.4
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