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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8cce4a1c8016cce1d60249fddc7bcef543017f1b121044d1f605e52ac820810
4
- data.tar.gz: 789a62d4f02c8669c9135260da71af344d8043624a81981d7c9450da3b6b1efd
3
+ metadata.gz: 8e8d88805f6bf45471f10a5d44cdb6fb89fdad684afdf536a5535aa3325d386b
4
+ data.tar.gz: 56fb7c3147d544db8b8c6e0490a4010a2668ee78e7eec5fbfa24fa44798a204b
5
5
  SHA512:
6
- metadata.gz: 9257a2d6c497bc4f0e598d279f93945dbe16b1ee35120a1e50aa46d38e2d488b33b8101ea83f758b463e534b9027235de72eaabda184dbc4b3c74fa0b012e8c9
7
- data.tar.gz: 72ed3f4e7286afb965bfe05025a571fdbe3456481653e0db5108f1cd97036f8e77293c0cf089b7f7dfe1a3262f1067cba88c3fd418a59fe7a8f1ced4afa223cc
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".freeze
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 = { name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME }
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
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module DelayedJob
3
- VERSION = "5.17.3"
3
+ VERSION = "5.18.0"
4
4
  end
5
5
  end
@@ -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.17.3"
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.17.3
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-04-11 00:00:00.000000000 Z
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.17.3
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.17.3
26
+ version: 5.18.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: delayed_job
29
29
  requirement: !ruby/object:Gem::Requirement