sentry-inst_jobs 1.0.1 → 5.10.0

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: dee2234e0e532597d063f61203ad8aa56c6cd7536f086156a82314bee1285c32
4
- data.tar.gz: 3b40765cb4763c17da0dac487f6e0d6d32b451c8e8d75fb85d4f332c33d8cb8d
3
+ metadata.gz: 35c449936eb2e0b5e283fe255192c191c2e0b94bf74744da4b69c0ca7e89e788
4
+ data.tar.gz: e2d6e29e03fb8d16492742968ea996f2380c148cce554cb1733aa699cd041181
5
5
  SHA512:
6
- metadata.gz: 93ab7ef0982a1c404000e15f6c4fb0cbd08e293f7383075e773c47e7c437dd38a30088287caa7c5a4add437343b023d55480c4ea3dac18cd02effc040a33002f
7
- data.tar.gz: 9daac068156c90ddd3e565dbbc521b835048634eb332322723ea71d57f958048afa246eddd0c0a10cb7b9ec7a207d9244e1204907751cb1b50fcaf80dee39c8c
6
+ metadata.gz: 73b8f0841ec6e42bad11185dfcc094499f7a8685a6723a31ba9ba2ac8345015467de6a09dd69479ad203be4bc7298c2b37da5855e109e32d4619e2646a2ea774
7
+ data.tar.gz: e4dc5622c87f7825968f51235f97e91ce78f9bc0ee1e7a12c88e76abcca10ec3dd978ff7d715f97c25c5d9a8ab9dead02c687ed7197423244a4c1cfe7c841adf
data/Dockerfile.ci CHANGED
@@ -16,4 +16,4 @@ COPY --chown=docker:docker . /usr/src/app
16
16
 
17
17
  ENV TEST_DB_USERNAME postgres
18
18
 
19
- CMD bash -lc "until pg_isready --host=$TEST_DB_HOST; do sleep 1; done && bundle exec rake"
19
+ CMD ["bash", "-lc", "./test.sh"]
data/Gemfile CHANGED
@@ -6,12 +6,6 @@ gemspec
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
8
 
9
- gem "inst-jobs"
10
- gem "rails"
11
9
  gem "pg"
12
10
 
13
- gem "sentry-ruby"
14
- gem "sentry-rails"
15
-
16
- gem "pry"
17
- gem "debug", github: "ruby/debug", platform: :ruby if RUBY_VERSION.to_f >= 2.6
11
+ gem "sentry-rails", "~> 5.10"
data/Gemfile.lock CHANGED
@@ -1,78 +1,35 @@
1
- GIT
2
- remote: https://github.com/ruby/debug.git
3
- revision: 089ae90a5c556d7b3a6f57ff9cbc07f9f35b33b3
4
- specs:
5
- debug (1.4.0)
6
- irb (>= 1.3.6)
7
- reline (>= 0.2.7)
8
-
9
1
  PATH
10
2
  remote: .
11
3
  specs:
12
- sentry-inst_jobs (1.0.1)
4
+ sentry-inst_jobs (5.10.0)
13
5
  inst-jobs (~> 3.0)
14
- sentry-ruby-core (~> 5.0.2)
6
+ sentry-ruby (~> 5.10)
15
7
 
16
8
  GEM
17
9
  remote: https://rubygems.org/
18
10
  specs:
19
- actioncable (6.1.4.4)
20
- actionpack (= 6.1.4.4)
21
- activesupport (= 6.1.4.4)
22
- nio4r (~> 2.0)
23
- websocket-driver (>= 0.6.1)
24
- actionmailbox (6.1.4.4)
25
- actionpack (= 6.1.4.4)
26
- activejob (= 6.1.4.4)
27
- activerecord (= 6.1.4.4)
28
- activestorage (= 6.1.4.4)
29
- activesupport (= 6.1.4.4)
30
- mail (>= 2.7.1)
31
- actionmailer (6.1.4.4)
32
- actionpack (= 6.1.4.4)
33
- actionview (= 6.1.4.4)
34
- activejob (= 6.1.4.4)
35
- activesupport (= 6.1.4.4)
36
- mail (~> 2.5, >= 2.5.4)
37
- rails-dom-testing (~> 2.0)
38
- actionpack (6.1.4.4)
39
- actionview (= 6.1.4.4)
40
- activesupport (= 6.1.4.4)
11
+ actionpack (6.1.4.6)
12
+ actionview (= 6.1.4.6)
13
+ activesupport (= 6.1.4.6)
41
14
  rack (~> 2.0, >= 2.0.9)
42
15
  rack-test (>= 0.6.3)
43
16
  rails-dom-testing (~> 2.0)
44
17
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
- actiontext (6.1.4.4)
46
- actionpack (= 6.1.4.4)
47
- activerecord (= 6.1.4.4)
48
- activestorage (= 6.1.4.4)
49
- activesupport (= 6.1.4.4)
50
- nokogiri (>= 1.8.5)
51
- actionview (6.1.4.4)
52
- activesupport (= 6.1.4.4)
18
+ actionview (6.1.4.6)
19
+ activesupport (= 6.1.4.6)
53
20
  builder (~> 3.1)
54
21
  erubi (~> 1.4)
55
22
  rails-dom-testing (~> 2.0)
56
23
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
- activejob (6.1.4.4)
58
- activesupport (= 6.1.4.4)
59
- globalid (>= 0.3.6)
60
- activemodel (6.1.4.4)
61
- activesupport (= 6.1.4.4)
62
- activerecord (6.1.4.4)
63
- activemodel (= 6.1.4.4)
64
- activesupport (= 6.1.4.4)
65
- activerecord-pg-extensions (0.4.2)
24
+ activemodel (6.1.4.6)
25
+ activesupport (= 6.1.4.6)
26
+ activerecord (6.1.4.6)
27
+ activemodel (= 6.1.4.6)
28
+ activesupport (= 6.1.4.6)
29
+ activerecord-pg-extensions (0.4.3)
66
30
  activerecord (>= 6.0, < 6.2)
67
31
  railties (>= 6.0, < 6.2)
68
- activestorage (6.1.4.4)
69
- actionpack (= 6.1.4.4)
70
- activejob (= 6.1.4.4)
71
- activerecord (= 6.1.4.4)
72
- activesupport (= 6.1.4.4)
73
- marcel (~> 1.0.0)
74
- mini_mime (>= 1.1.0)
75
- activesupport (6.1.4.4)
32
+ activesupport (6.1.4.6)
76
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
77
34
  i18n (>= 1.6, < 2)
78
35
  minitest (>= 5.1)
@@ -81,8 +38,7 @@ GEM
81
38
  after_transaction_commit (2.2.2)
82
39
  activerecord (>= 5.2)
83
40
  builder (3.2.4)
84
- coderay (1.1.3)
85
- concurrent-ruby (1.1.9)
41
+ concurrent-ruby (1.2.2)
86
42
  crass (1.0.6)
87
43
  debug_inspector (1.1.0)
88
44
  diff-lcs (1.5.0)
@@ -92,11 +48,9 @@ GEM
92
48
  fugit (1.5.2)
93
49
  et-orbi (~> 1.1, >= 1.1.8)
94
50
  raabro (~> 1.4)
95
- globalid (1.0.0)
96
- activesupport (>= 5.0)
97
51
  i18n (1.9.1)
98
52
  concurrent-ruby (~> 1.0)
99
- inst-jobs (3.0.7)
53
+ inst-jobs (3.0.8)
100
54
  activerecord (>= 6.0)
101
55
  activerecord-pg-extensions (~> 0.4)
102
56
  activesupport (>= 6.0)
@@ -104,110 +58,72 @@ GEM
104
58
  debug_inspector (~> 1.0)
105
59
  fugit (~> 1.3)
106
60
  railties (>= 6.0)
107
- io-console (0.5.11)
108
- irb (1.4.1)
109
- reline (>= 0.3.0)
110
- loofah (2.13.0)
61
+ loofah (2.14.0)
111
62
  crass (~> 1.0.2)
112
63
  nokogiri (>= 1.5.9)
113
- mail (2.7.1)
114
- mini_mime (>= 0.1.1)
115
- marcel (1.0.2)
116
64
  method_source (1.0.0)
117
- mini_mime (1.1.2)
118
65
  minitest (5.15.0)
119
- nio4r (2.5.8)
66
+ nokogiri (1.13.1-aarch64-linux)
67
+ racc (~> 1.4)
68
+ nokogiri (1.13.1-arm64-darwin)
69
+ racc (~> 1.4)
120
70
  nokogiri (1.13.1-x86_64-darwin)
121
71
  racc (~> 1.4)
122
- pg (1.3.1)
123
- pry (0.14.1)
124
- coderay (~> 1.1)
125
- method_source (~> 1.0)
72
+ nokogiri (1.13.1-x86_64-linux)
73
+ racc (~> 1.4)
74
+ pg (1.3.2)
126
75
  raabro (1.4.0)
127
76
  racc (1.6.0)
128
77
  rack (2.2.3)
129
78
  rack-test (1.1.0)
130
79
  rack (>= 1.0, < 3)
131
- rails (6.1.4.4)
132
- actioncable (= 6.1.4.4)
133
- actionmailbox (= 6.1.4.4)
134
- actionmailer (= 6.1.4.4)
135
- actionpack (= 6.1.4.4)
136
- actiontext (= 6.1.4.4)
137
- actionview (= 6.1.4.4)
138
- activejob (= 6.1.4.4)
139
- activemodel (= 6.1.4.4)
140
- activerecord (= 6.1.4.4)
141
- activestorage (= 6.1.4.4)
142
- activesupport (= 6.1.4.4)
143
- bundler (>= 1.15.0)
144
- railties (= 6.1.4.4)
145
- sprockets-rails (>= 2.0.0)
146
80
  rails-dom-testing (2.0.3)
147
81
  activesupport (>= 4.2.0)
148
82
  nokogiri (>= 1.6)
149
83
  rails-html-sanitizer (1.4.2)
150
84
  loofah (~> 2.3)
151
- railties (6.1.4.4)
152
- actionpack (= 6.1.4.4)
153
- activesupport (= 6.1.4.4)
85
+ railties (6.1.4.6)
86
+ actionpack (= 6.1.4.6)
87
+ activesupport (= 6.1.4.6)
154
88
  method_source
155
89
  rake (>= 0.13)
156
90
  thor (~> 1.0)
157
91
  rake (12.3.3)
158
- reline (0.3.1)
159
- io-console (~> 0.5)
160
- rspec (3.10.0)
161
- rspec-core (~> 3.10.0)
162
- rspec-expectations (~> 3.10.0)
163
- rspec-mocks (~> 3.10.0)
164
- rspec-core (3.10.2)
165
- rspec-support (~> 3.10.0)
166
- rspec-expectations (3.10.2)
92
+ rspec (3.11.0)
93
+ rspec-core (~> 3.11.0)
94
+ rspec-expectations (~> 3.11.0)
95
+ rspec-mocks (~> 3.11.0)
96
+ rspec-core (3.11.0)
97
+ rspec-support (~> 3.11.0)
98
+ rspec-expectations (3.11.0)
167
99
  diff-lcs (>= 1.2.0, < 2.0)
168
- rspec-support (~> 3.10.0)
169
- rspec-mocks (3.10.3)
100
+ rspec-support (~> 3.11.0)
101
+ rspec-mocks (3.11.0)
170
102
  diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.10.0)
172
- rspec-support (3.10.3)
173
- sentry-rails (5.0.2)
103
+ rspec-support (~> 3.11.0)
104
+ rspec-support (3.11.0)
105
+ sentry-rails (5.10.0)
174
106
  railties (>= 5.0)
175
- sentry-ruby-core (~> 5.0.2)
176
- sentry-ruby (5.0.2)
107
+ sentry-ruby (~> 5.10.0)
108
+ sentry-ruby (5.10.0)
177
109
  concurrent-ruby (~> 1.0, >= 1.0.2)
178
- sentry-ruby-core (= 5.0.2)
179
- sentry-ruby-core (5.0.2)
180
- concurrent-ruby
181
- sprockets (4.0.2)
182
- concurrent-ruby (~> 1.0)
183
- rack (> 1, < 3)
184
- sprockets-rails (3.4.2)
185
- actionpack (>= 5.2)
186
- activesupport (>= 5.2)
187
- sprockets (>= 3.0.0)
188
110
  thor (1.2.1)
189
111
  tzinfo (2.0.4)
190
112
  concurrent-ruby (~> 1.0)
191
- websocket-driver (0.7.5)
192
- websocket-extensions (>= 0.1.0)
193
- websocket-extensions (0.1.5)
194
113
  zeitwerk (2.5.4)
195
114
 
196
115
  PLATFORMS
197
- x86_64-darwin-20
198
- x86_64-darwin-21
116
+ aarch64-linux
117
+ arm64-darwin
118
+ x86_64-darwin
119
+ x86_64-linux
199
120
 
200
121
  DEPENDENCIES
201
- debug!
202
- inst-jobs
203
122
  pg
204
- pry
205
- rails
206
123
  rake (~> 12.0)
207
124
  rspec (~> 3.0)
208
125
  sentry-inst_jobs!
209
- sentry-rails
210
- sentry-ruby
126
+ sentry-rails (~> 5.10)
211
127
 
212
128
  BUNDLED WITH
213
129
  2.2.33
data/README.md CHANGED
@@ -15,7 +15,6 @@ make `sentry-delayed_job` compatible with `inst-jobs`. This integration is not a
15
15
  ### Install
16
16
 
17
17
  ```ruby
18
- gem "sentry-ruby"
19
18
  gem "sentry-inst_jobs"
20
19
  ```
21
20
 
data/Rakefile CHANGED
@@ -1,6 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
5
+ #load 'rails/tasks/engine.rake'
6
+
4
7
  RSpec::Core::RakeTask.new(:spec).tap do |task|
5
8
  task.rspec_opts = "--order rand"
6
9
  end
data/docker-compose.yml CHANGED
@@ -6,6 +6,7 @@ services:
6
6
  context: .
7
7
  dockerfile: Dockerfile.ci
8
8
  environment:
9
+ RAILS_ENV: test
9
10
  TEST_DB_HOST: postgres
10
11
  depends_on:
11
12
  - postgres
data/example/Gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: https://github.com/ruby/debug.git
3
- revision: 089ae90a5c556d7b3a6f57ff9cbc07f9f35b33b3
3
+ revision: a21742df633cb4c4c19ab7819c88b5fe6d8ed293
4
4
  specs:
5
5
  debug (1.4.0)
6
6
  irb (>= 1.3.6)
@@ -9,70 +9,70 @@ GIT
9
9
  PATH
10
10
  remote: ..
11
11
  specs:
12
- sentry-inst_jobs (1.0.1)
12
+ sentry-inst_jobs (1.0.2)
13
13
  inst-jobs (~> 3.0)
14
- sentry-ruby-core (~> 5.0.2)
14
+ sentry-ruby-core (~> 5.1.0)
15
15
 
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- actioncable (6.1.4.4)
20
- actionpack (= 6.1.4.4)
21
- activesupport (= 6.1.4.4)
19
+ actioncable (6.1.4.6)
20
+ actionpack (= 6.1.4.6)
21
+ activesupport (= 6.1.4.6)
22
22
  nio4r (~> 2.0)
23
23
  websocket-driver (>= 0.6.1)
24
- actionmailbox (6.1.4.4)
25
- actionpack (= 6.1.4.4)
26
- activejob (= 6.1.4.4)
27
- activerecord (= 6.1.4.4)
28
- activestorage (= 6.1.4.4)
29
- activesupport (= 6.1.4.4)
24
+ actionmailbox (6.1.4.6)
25
+ actionpack (= 6.1.4.6)
26
+ activejob (= 6.1.4.6)
27
+ activerecord (= 6.1.4.6)
28
+ activestorage (= 6.1.4.6)
29
+ activesupport (= 6.1.4.6)
30
30
  mail (>= 2.7.1)
31
- actionmailer (6.1.4.4)
32
- actionpack (= 6.1.4.4)
33
- actionview (= 6.1.4.4)
34
- activejob (= 6.1.4.4)
35
- activesupport (= 6.1.4.4)
31
+ actionmailer (6.1.4.6)
32
+ actionpack (= 6.1.4.6)
33
+ actionview (= 6.1.4.6)
34
+ activejob (= 6.1.4.6)
35
+ activesupport (= 6.1.4.6)
36
36
  mail (~> 2.5, >= 2.5.4)
37
37
  rails-dom-testing (~> 2.0)
38
- actionpack (6.1.4.4)
39
- actionview (= 6.1.4.4)
40
- activesupport (= 6.1.4.4)
38
+ actionpack (6.1.4.6)
39
+ actionview (= 6.1.4.6)
40
+ activesupport (= 6.1.4.6)
41
41
  rack (~> 2.0, >= 2.0.9)
42
42
  rack-test (>= 0.6.3)
43
43
  rails-dom-testing (~> 2.0)
44
44
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
45
- actiontext (6.1.4.4)
46
- actionpack (= 6.1.4.4)
47
- activerecord (= 6.1.4.4)
48
- activestorage (= 6.1.4.4)
49
- activesupport (= 6.1.4.4)
45
+ actiontext (6.1.4.6)
46
+ actionpack (= 6.1.4.6)
47
+ activerecord (= 6.1.4.6)
48
+ activestorage (= 6.1.4.6)
49
+ activesupport (= 6.1.4.6)
50
50
  nokogiri (>= 1.8.5)
51
- actionview (6.1.4.4)
52
- activesupport (= 6.1.4.4)
51
+ actionview (6.1.4.6)
52
+ activesupport (= 6.1.4.6)
53
53
  builder (~> 3.1)
54
54
  erubi (~> 1.4)
55
55
  rails-dom-testing (~> 2.0)
56
56
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
- activejob (6.1.4.4)
58
- activesupport (= 6.1.4.4)
57
+ activejob (6.1.4.6)
58
+ activesupport (= 6.1.4.6)
59
59
  globalid (>= 0.3.6)
60
- activemodel (6.1.4.4)
61
- activesupport (= 6.1.4.4)
62
- activerecord (6.1.4.4)
63
- activemodel (= 6.1.4.4)
64
- activesupport (= 6.1.4.4)
65
- activerecord-pg-extensions (0.4.2)
60
+ activemodel (6.1.4.6)
61
+ activesupport (= 6.1.4.6)
62
+ activerecord (6.1.4.6)
63
+ activemodel (= 6.1.4.6)
64
+ activesupport (= 6.1.4.6)
65
+ activerecord-pg-extensions (0.4.3)
66
66
  activerecord (>= 6.0, < 6.2)
67
67
  railties (>= 6.0, < 6.2)
68
- activestorage (6.1.4.4)
69
- actionpack (= 6.1.4.4)
70
- activejob (= 6.1.4.4)
71
- activerecord (= 6.1.4.4)
72
- activesupport (= 6.1.4.4)
68
+ activestorage (6.1.4.6)
69
+ actionpack (= 6.1.4.6)
70
+ activejob (= 6.1.4.6)
71
+ activerecord (= 6.1.4.6)
72
+ activesupport (= 6.1.4.6)
73
73
  marcel (~> 1.0.0)
74
74
  mini_mime (>= 1.1.0)
75
- activesupport (6.1.4.4)
75
+ activesupport (6.1.4.6)
76
76
  concurrent-ruby (~> 1.0, >= 1.0.2)
77
77
  i18n (>= 1.6, < 2)
78
78
  minitest (>= 5.1)
@@ -95,7 +95,7 @@ GEM
95
95
  activesupport (>= 5.0)
96
96
  i18n (1.9.1)
97
97
  concurrent-ruby (~> 1.0)
98
- inst-jobs (3.0.7)
98
+ inst-jobs (3.0.8)
99
99
  activerecord (>= 6.0)
100
100
  activerecord-pg-extensions (~> 0.4)
101
101
  activesupport (>= 6.0)
@@ -106,7 +106,7 @@ GEM
106
106
  io-console (0.5.11)
107
107
  irb (1.4.1)
108
108
  reline (>= 0.3.0)
109
- loofah (2.13.0)
109
+ loofah (2.14.0)
110
110
  crass (~> 1.0.2)
111
111
  nokogiri (>= 1.5.9)
112
112
  mail (2.7.1)
@@ -126,39 +126,39 @@ GEM
126
126
  rack (2.2.3)
127
127
  rack-test (1.1.0)
128
128
  rack (>= 1.0, < 3)
129
- rails (6.1.4.4)
130
- actioncable (= 6.1.4.4)
131
- actionmailbox (= 6.1.4.4)
132
- actionmailer (= 6.1.4.4)
133
- actionpack (= 6.1.4.4)
134
- actiontext (= 6.1.4.4)
135
- actionview (= 6.1.4.4)
136
- activejob (= 6.1.4.4)
137
- activemodel (= 6.1.4.4)
138
- activerecord (= 6.1.4.4)
139
- activestorage (= 6.1.4.4)
140
- activesupport (= 6.1.4.4)
129
+ rails (6.1.4.6)
130
+ actioncable (= 6.1.4.6)
131
+ actionmailbox (= 6.1.4.6)
132
+ actionmailer (= 6.1.4.6)
133
+ actionpack (= 6.1.4.6)
134
+ actiontext (= 6.1.4.6)
135
+ actionview (= 6.1.4.6)
136
+ activejob (= 6.1.4.6)
137
+ activemodel (= 6.1.4.6)
138
+ activerecord (= 6.1.4.6)
139
+ activestorage (= 6.1.4.6)
140
+ activesupport (= 6.1.4.6)
141
141
  bundler (>= 1.15.0)
142
- railties (= 6.1.4.4)
142
+ railties (= 6.1.4.6)
143
143
  sprockets-rails (>= 2.0.0)
144
144
  rails-dom-testing (2.0.3)
145
145
  activesupport (>= 4.2.0)
146
146
  nokogiri (>= 1.6)
147
147
  rails-html-sanitizer (1.4.2)
148
148
  loofah (~> 2.3)
149
- railties (6.1.4.4)
150
- actionpack (= 6.1.4.4)
151
- activesupport (= 6.1.4.4)
149
+ railties (6.1.4.6)
150
+ actionpack (= 6.1.4.6)
151
+ activesupport (= 6.1.4.6)
152
152
  method_source
153
153
  rake (>= 0.13)
154
154
  thor (~> 1.0)
155
155
  rake (13.0.6)
156
156
  reline (0.3.1)
157
157
  io-console (~> 0.5)
158
- sentry-ruby (5.0.2)
158
+ sentry-ruby (5.1.0)
159
159
  concurrent-ruby (~> 1.0, >= 1.0.2)
160
- sentry-ruby-core (= 5.0.2)
161
- sentry-ruby-core (5.0.2)
160
+ sentry-ruby-core (= 5.1.0)
161
+ sentry-ruby-core (5.1.0)
162
162
  concurrent-ruby
163
163
  sprockets (4.0.2)
164
164
  concurrent-ruby (~> 1.0)
@@ -6,6 +6,7 @@ module Sentry
6
6
  class Plugin < ::Delayed::Plugin
7
7
  # need to symbolize strings as keyword arguments in Ruby 2.4~2.6
8
8
  INST_JOBS_CONTEXT_KEY = :"Inst-Jobs"
9
+ OP_NAME = "inst_jobs"
9
10
 
10
11
  callbacks do |lifecycle|
11
12
  lifecycle.around(:invoke_job) do |job, *args, &block|
@@ -13,11 +14,11 @@ module Sentry
13
14
 
14
15
  Sentry.with_scope do |scope|
15
16
  contexts = generate_contexts(job)
16
- scope.set_transaction_name(contexts.dig(INST_JOBS_CONTEXT_KEY, :job_class))
17
+ scope.set_transaction_name(contexts.dig(INST_JOBS_CONTEXT_KEY, :job_class), source: :task)
17
18
  scope.set_contexts(**contexts)
18
19
  scope.set_tags("inst_jobs.queue" => job.queue, "inst_jobs.id" => job.id.to_s)
19
20
 
20
- transaction = Sentry.start_transaction(name: scope.transaction_name, op: "inst_jobs")
21
+ transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME)
21
22
  scope.set_span(transaction) if transaction
22
23
 
23
24
  begin
@@ -48,6 +49,9 @@ module Sentry
48
49
  last_error: job.last_error&.byteslice(0..1000),
49
50
  handler: job.handler&.byteslice(0..1000),
50
51
  job_class: compute_job_class(job.payload_object),
52
+ tag: job.tag,
53
+ strand: job.strand,
54
+ singleton: job.singleton,
51
55
  }
52
56
 
53
57
  context
@@ -76,7 +80,7 @@ module Sentry
76
80
 
77
81
  def self.finish_transaction(transaction, status)
78
82
  return unless transaction
79
-
83
+
80
84
  transaction.set_http_status(status)
81
85
  transaction.finish
82
86
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module InstJobs
3
- VERSION = "1.0.1"
3
+ VERSION = "5.10.0"
4
4
  end
5
5
  end
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "sentry-ruby-core", "~> 5.0.2"
25
+ spec.add_dependency "sentry-ruby", "~> 5.10"
26
26
  spec.add_dependency "inst-jobs", "~> 3.0"
27
27
  end
data/test.sh ADDED
@@ -0,0 +1,10 @@
1
+ #!/bin/sh
2
+
3
+ # Wait for database to be ready
4
+ until pg_isready --host="$TEST_DB_HOST"; do sleep 1; done
5
+
6
+ # Migrate the database
7
+ bundle exec rake db:migrate
8
+
9
+ # Run tests
10
+ bundle exec rake
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-inst_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 5.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Moore
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-02 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sentry-ruby-core
14
+ name: sentry-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.2
19
+ version: '5.10'
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: 5.0.2
26
+ version: '5.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: inst-jobs
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -69,6 +69,7 @@ files:
69
69
  - lib/sentry/inst_jobs/plugin.rb
70
70
  - lib/sentry/inst_jobs/version.rb
71
71
  - sentry-inst_jobs.gemspec
72
+ - test.sh
72
73
  homepage: https://github.com/instructure/sentry-inst_jobs
73
74
  licenses:
74
75
  - MIT
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
92
  - !ruby/object:Gem::Version
92
93
  version: '0'
93
94
  requirements: []
94
- rubygems_version: 3.2.3
95
+ rubygems_version: 3.3.26
95
96
  signing_key:
96
97
  specification_version: 4
97
98
  summary: An inst-jobs integration for the Sentry error logger