sentry-delayed_job 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/delayed_job/plugin.rb +9 -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: 8e8d88805f6bf45471f10a5d44cdb6fb89fdad684afdf536a5535aa3325d386b
|
4
|
+
data.tar.gz: 56fb7c3147d544db8b8c6e0490a4010a2668ee78e7eec5fbfa24fa44798a204b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ece19435b8c99cc33cfd82195664c2fcea3b4fe6fdcc52fd738d3fa631a5b6f638d4b128f3491f33ccb8ce645f0ecc7436843ba023a8317106bce014200707
|
7
|
+
data.tar.gz: 45c515e7baa430aab49241f3ec9e1bcb15f123044b981f05db47ea9f89e763607f2be867789f367fdb813ea3caca21ffc3b2bc778ca634e8e4fd255b5eeebdd7
|
@@ -8,7 +8,8 @@ module Sentry
|
|
8
8
|
# need to symbolize strings as keyword arguments in Ruby 2.4~2.6
|
9
9
|
DELAYED_JOB_CONTEXT_KEY = :"Delayed-Job"
|
10
10
|
ACTIVE_JOB_CONTEXT_KEY = :"Active-Job"
|
11
|
-
OP_NAME = "queue.delayed_job"
|
11
|
+
OP_NAME = "queue.delayed_job"
|
12
|
+
SPAN_ORIGIN = "auto.queue.delayed_job"
|
12
13
|
|
13
14
|
callbacks do |lifecycle|
|
14
15
|
lifecycle.before(:enqueue) do |job, *args, &block|
|
@@ -93,7 +94,13 @@ module Sentry
|
|
93
94
|
end
|
94
95
|
|
95
96
|
def self.start_transaction(scope, env, contexts)
|
96
|
-
options = {
|
97
|
+
options = {
|
98
|
+
name: scope.transaction_name,
|
99
|
+
source: scope.transaction_source,
|
100
|
+
op: OP_NAME,
|
101
|
+
origin: SPAN_ORIGIN
|
102
|
+
}
|
103
|
+
|
97
104
|
transaction = Sentry.continue_trace(env, **options)
|
98
105
|
Sentry.start_transaction(transaction: transaction, custom_sampling_context: contexts, **options)
|
99
106
|
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.18.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.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: delayed_job
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|