sentry-delayed_job 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 007adc6be40e335f5111514ca10371457af78f7337f36c2ba9e4c40543de870b
4
- data.tar.gz: b37d0322df8d4e6bcac60ccbaccbc9d504416778fdb347473eaa0605f57bd527
3
+ metadata.gz: 1b66cbdf6af9f3c9f8848f34d05ef4a87034ffe89335024fb26ddf5e2c3971f6
4
+ data.tar.gz: e50c503cbcce119d95afc2f7a7108bbe04bf6899692989ff4ebc1d5066085c1a
5
5
  SHA512:
6
- metadata.gz: 3f945dfa0e5fd5a83e6798e5feb49ffa14f8da4933317b45311be1fab18b62f38a6c739cce7ca9740124ead63f75275d0e0fe0f2c5f544f6ae01b42c5374c6be
7
- data.tar.gz: be31485113f92e0d12b77e3e22254972eb90088dd8c87c0d3f073ae57c99a4621a7e18b432e0a71a8be6515ce2c600ee1b680ccbc55dc9917b0ae28a8f5aee27
6
+ metadata.gz: d49cc6cecb6723f3b98444e5dc5a7d124750ad9402c675a873417ffb1cd21369e668450e15e82e250f726f61ceed74a1813e72b81daff320c64ac747b0813e22
7
+ data.tar.gz: 79fb0858207e2bf8aa04736eac4d09f3ad7e203a65fd71809ec5e246ec91016bb2c154834cd76bb7e52591dd4db1bf52a42364226ea826603d3dd47a5e123923
@@ -14,11 +14,12 @@ module Sentry
14
14
 
15
15
  Sentry.with_scope do |scope|
16
16
  contexts = generate_contexts(job)
17
- scope.set_transaction_name(contexts.dig(ACTIVE_JOB_CONTEXT_KEY, :job_class) || contexts.dig(DELAYED_JOB_CONTEXT_KEY, :job_class))
17
+ name = contexts.dig(ACTIVE_JOB_CONTEXT_KEY, :job_class) || contexts.dig(DELAYED_JOB_CONTEXT_KEY, :job_class)
18
+ scope.set_transaction_name(name, source: :task)
18
19
  scope.set_contexts(**contexts)
19
20
  scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id.to_s)
20
21
 
21
- transaction = Sentry.start_transaction(name: scope.transaction_name, op: "delayed_job")
22
+ transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: "delayed_job")
22
23
  scope.set_span(transaction) if transaction
23
24
 
24
25
  begin
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module DelayedJob
3
- VERSION = "5.4.1"
3
+ VERSION = "5.5.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.4.1"
25
+ spec.add_dependency "sentry-ruby", "~> 5.5.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.1
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-07-26 00:00:00.000000000 Z
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.4.1
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.4.1
26
+ version: 5.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: delayed_job
29
29
  requirement: !ruby/object:Gem::Requirement