sentry-delayed_job 5.5.0 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sentry/delayed_job/plugin.rb +3 -2
- data/lib/sentry/delayed_job/version.rb +1 -1
- data/sentry-delayed_job.gemspec +1 -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: eefa1cc2355ca9101df7c86715570ffada7fa80c1f08be4b67e308b5ee5446e3
|
4
|
+
data.tar.gz: 5059ad9a7adcddcb7a586aee84eebb3ae9c8ee4fa8d2ec558a63944398d91323
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4bdff6e5b89488746f7ea2192c1b9ee391f57e0ef2521bbac52f0c24f17227b2a25cbaf5108fdee0039291fb5fac1c5227e680d2cfcd2cda9e2d6d7368082f
|
7
|
+
data.tar.gz: 824571aef720460d30aeaf1fa815f6fd52d0c3796a0ed0e4fba6d15cf5301991288c9488cee0ce2519119ba8f13b65628ea2197f05c0922f83b996871ecdc973
|
@@ -7,6 +7,7 @@ module Sentry
|
|
7
7
|
# need to symbolize strings as keyword arguments in Ruby 2.4~2.6
|
8
8
|
DELAYED_JOB_CONTEXT_KEY = :"Delayed-Job"
|
9
9
|
ACTIVE_JOB_CONTEXT_KEY = :"Active-Job"
|
10
|
+
OP_NAME = "queue.delayed_job".freeze
|
10
11
|
|
11
12
|
callbacks do |lifecycle|
|
12
13
|
lifecycle.around(:invoke_job) do |job, *args, &block|
|
@@ -19,7 +20,7 @@ module Sentry
|
|
19
20
|
scope.set_contexts(**contexts)
|
20
21
|
scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id.to_s)
|
21
22
|
|
22
|
-
transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op:
|
23
|
+
transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME)
|
23
24
|
scope.set_span(transaction) if transaction
|
24
25
|
|
25
26
|
begin
|
@@ -86,7 +87,7 @@ module Sentry
|
|
86
87
|
|
87
88
|
def self.finish_transaction(transaction, status)
|
88
89
|
return unless transaction
|
89
|
-
|
90
|
+
|
90
91
|
transaction.set_http_status(status)
|
91
92
|
transaction.finish
|
92
93
|
end
|
data/sentry-delayed_job.gemspec
CHANGED
@@ -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", "~> 5.
|
25
|
+
spec.add_dependency "sentry-ruby", "~> 5.7.0"
|
26
26
|
spec.add_dependency "delayed_job", ">= 4.0"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sentry-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.
|
19
|
+
version: 5.7.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: 5.
|
26
|
+
version: 5.7.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: delayed_job
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|