sentry-resque 5.4.1 → 5.5.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/resque/version.rb +1 -1
- data/lib/sentry/resque.rb +3 -2
- data/sentry-resque.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: 1613083f528d0f5d6b177394faacb22eb9db056451a6b3c32e59c265302eeca5
|
4
|
+
data.tar.gz: b5c6273e848a631f4e4bd56807d0a1b44ad333c86a50d2310a54761387db1e2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c36e20fe295ca055470f79284e419f9e32fa97ff18c0c68d08a5003ebe3dfca2d5a8b73527b9d6c275450c3515f56eacafd1a310bf17fc19d5f791b8d7bf8cc3
|
7
|
+
data.tar.gz: 5c3d28253c516c63a86c35fa59cd54949dac6e290c7b043da42cd3ee081b8ed5f7e04ee3d28750e19e47a25d4cf2c6488f762a59a13f6b11fe261642256c4ece
|
data/lib/sentry/resque.rb
CHANGED
@@ -23,8 +23,9 @@ module Sentry
|
|
23
23
|
scope.set_contexts(**contexts)
|
24
24
|
scope.set_tags("resque.queue" => queue)
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
name = contexts.dig(:"Active-Job", :job_class) || contexts.dig(:"Resque", :job_class)
|
27
|
+
scope.set_transaction_name(name, source: :task)
|
28
|
+
transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: "resque")
|
28
29
|
scope.set_span(transaction) if transaction
|
29
30
|
|
30
31
|
yield
|
data/sentry-resque.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.5.0"
|
26
26
|
spec.add_dependency "resque", ">= 1.24"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-resque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.5.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-10-03 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.5.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.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: resque
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|