sentry-resque 5.17.3 → 5.18.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 +9 -1
- 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: 14940c62edffc261d0ea43732998c7361efce27d8ebe947a9d19cc5545578d95
|
4
|
+
data.tar.gz: 250abbd48df0a57c81b546dfa868c4d0b6bed4a92804935925776dc4a43844df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdaa65ee17610031947a0ed8d84e5f20c8782fad047a443d3da4dbc0c53d3f2dc8116649571023e3cf58cad04ce76a15f5815bd698f9eeff4d9167a5072bfd7f
|
7
|
+
data.tar.gz: fc086f032af8df21e4feae1a753edcb77bd0d2d221ef8dbb1d3d91eee52dbeb8008e24fbbfeeb0fa8ae1722ed84c55cd2f2793748171f5e8225bada1702cc4ce
|
data/lib/sentry/resque.rb
CHANGED
@@ -15,6 +15,8 @@ module Sentry
|
|
15
15
|
end
|
16
16
|
|
17
17
|
class SentryReporter
|
18
|
+
SPAN_ORIGIN = "auto.queue.resque"
|
19
|
+
|
18
20
|
class << self
|
19
21
|
def record(queue, worker, payload, &block)
|
20
22
|
Sentry.with_scope do |scope|
|
@@ -25,7 +27,13 @@ module Sentry
|
|
25
27
|
|
26
28
|
name = contexts.dig(:"Active-Job", :job_class) || contexts.dig(:"Resque", :job_class)
|
27
29
|
scope.set_transaction_name(name, source: :task)
|
28
|
-
transaction = Sentry.start_transaction(
|
30
|
+
transaction = Sentry.start_transaction(
|
31
|
+
name: scope.transaction_name,
|
32
|
+
source: scope.transaction_source,
|
33
|
+
op: "queue.resque",
|
34
|
+
origin: SPAN_ORIGIN
|
35
|
+
)
|
36
|
+
|
29
37
|
scope.set_span(transaction) if transaction
|
30
38
|
|
31
39
|
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.18.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.18.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: 2024-
|
11
|
+
date: 2024-06-25 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.18.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.18.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: resque
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|