sentry-sidekiq 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: e62d322d88790933a6882bbc1da69997e3841f6443417b1f67355c857f7e2b96
4
- data.tar.gz: 109c6f3ca9f27b8141528aa4cc53030fbe073874f45f5f2fb01c78f155afdfc9
3
+ metadata.gz: e43da1dcac270fdb233815a56b4ed74b1c7e2cbeedea4ecc1df3bbbcb67b48d1
4
+ data.tar.gz: c7fb07d32b2515479a3775795016fd7d1447fd0e2d37cd94e7f53c3cacb5615c
5
5
  SHA512:
6
- metadata.gz: 21f255ed24d8581fcee5f720113f2e75ceffb691e1008cd94782de851a8fd630d4ff72a3a423d8b0f0076d6f08cb5bc036e860e543e827c0494b955a8605359a
7
- data.tar.gz: 64565bb037292e4a52b84186eebfea25ca988b86bcd283688c4c07ead4a79cda78fd5746495907080f07c063a7395cf8e89abc0e39a7a034b17a85c2c3fc70b9
6
+ metadata.gz: c6361d8d77cda58d1943a5dab098d98ef71328c0165fe93cecb8afc03e2757fa97359a51e1da2f92e9591ea40acdfdf79a914570f8794f08a29808bc660a3c5b
7
+ data.tar.gz: 3c002641917778ad5ec4eebe84914a33ba7a16fc2ce10bc86fa11467492ed6e2cafa6555d864768be0bea0402e290a0d623b149a056605eae8e9e38eb0242b20
@@ -9,7 +9,7 @@ module Sentry
9
9
  context_filter = Sentry::Sidekiq::ContextFilter.new(context)
10
10
 
11
11
  scope = Sentry.get_current_scope
12
- scope.set_transaction_name(context_filter.transaction_name) unless scope.transaction_name
12
+ scope.set_transaction_name(context_filter.transaction_name, source: :task) unless scope.transaction_name
13
13
 
14
14
  if Sentry.configuration.sidekiq.report_after_job_retries && retryable?(context)
15
15
  retry_count = context.dig(:job, "retry_count")
@@ -16,8 +16,8 @@ module Sentry
16
16
  scope.set_tags(queue: queue, jid: job["jid"])
17
17
  scope.set_tags(build_tags(job["tags"]))
18
18
  scope.set_contexts(sidekiq: job.merge("queue" => queue))
19
- scope.set_transaction_name(context_filter.transaction_name)
20
- transaction = start_transaction(scope.transaction_name, job["sentry_trace"])
19
+ scope.set_transaction_name(context_filter.transaction_name, source: :task)
20
+ transaction = start_transaction(scope, job["sentry_trace"])
21
21
  scope.set_span(transaction) if transaction
22
22
 
23
23
  begin
@@ -37,8 +37,8 @@ module Sentry
37
37
  Array(tags).each_with_object({}) { |name, tags_hash| tags_hash[:"sidekiq.#{name}"] = true }
38
38
  end
39
39
 
40
- def start_transaction(transaction_name, sentry_trace)
41
- options = { name: transaction_name, op: "sidekiq" }
40
+ def start_transaction(scope, sentry_trace)
41
+ options = { name: scope.transaction_name, source: scope.transaction_source, op: "sidekiq" }
42
42
  transaction = Sentry::Transaction.from_sentry_trace(sentry_trace, **options) if sentry_trace
43
43
  Sentry.start_transaction(transaction: transaction, **options)
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sidekiq
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 "sidekiq", ">= 3.0"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-sidekiq
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: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement