sentry-resque 5.17.3 → 5.18.1
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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a923d73207923b8c7e638b9f0cb71d18a58ad9d5a0b65059edab37020b3a391
|
4
|
+
data.tar.gz: b910ddbeba9d1e20368ce39403a51f2adc109eea742ab29a460a645921f24f6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9d3f77ba38fec69d96e7c3b4db05bea3437b7eb3312a6ea507f0e40d895cabac61728b6ecf23b277d7a9c0284016e5059864aaa32f0f2f00048c0093e24a720
|
7
|
+
data.tar.gz: 48e5e65f438ed2cf4d073b7985695d20552c506f8bb8271563a13bf8afb99d9e5ced975ce8e4c1b2abdb17212c21f98a38f912c4ee19e02139696a91b6f59988
|
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.1"
|
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.1
|
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-07-02 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.1
|
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.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: resque
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.5.11
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: A gem that provides Resque integration for the Sentry error logger
|