sentry-sidekiq 5.10.0 → 5.11.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: e0032fc4b32f7d021cb268513357d37f6697fcae83a4d976a9b0e011e31931e9
4
- data.tar.gz: f32997df5b2f5aab6430d5828f8a678eff2e3440fc3b55b64f1bea5ab7de752f
3
+ metadata.gz: b2cf3275a4962da81ac949b8faffe8e99653f97568e98cffd5cccdf101b6b550
4
+ data.tar.gz: 958f3643153a4ba0eeac48368b7fff31831f987b004294ddc5acf8d585c87533
5
5
  SHA512:
6
- metadata.gz: 36a7e7af214cfa651ab6a05c34735cb27ada4647a74c2ec3cf4e10af65eee47dd9cfd6bd8551c50971aede6315849f63c7fc44cefa7c8770504421cf24c3333d
7
- data.tar.gz: a74c6e2bd56eba75ad59504c87636a4de882f890af3ae97d898d2b8c9db7ff7431cc14d55aff13e4bdf44c6b287af4ff3417afad2eaa42806da585c742097119
6
+ metadata.gz: 81857d7758a9ea01cf489c39abf753ce6d7ee9ae66cbb232b41edcada8d05795e86007cd68ad90025748e670da2b8560dd242f908d80a83c6d15c73f175f558e
7
+ data.tar.gz: a24bfd038083830b1c16e5f3141fad6760bac7a2f7ca6ecc2807ddb050692c605e541b476d8dadd19619cd5fcb978a89376d58ec166964c773268e36ce4e1f8b
@@ -19,7 +19,7 @@ module Sentry
19
19
  scope.set_tags(build_tags(job["tags"]))
20
20
  scope.set_contexts(sidekiq: job.merge("queue" => queue))
21
21
  scope.set_transaction_name(context_filter.transaction_name, source: :task)
22
- transaction = start_transaction(scope, job["sentry_trace"])
22
+ transaction = start_transaction(scope, job["trace_propagation_headers"])
23
23
  scope.set_span(transaction) if transaction
24
24
 
25
25
  begin
@@ -39,9 +39,9 @@ module Sentry
39
39
  Array(tags).each_with_object({}) { |name, tags_hash| tags_hash[:"sidekiq.#{name}"] = true }
40
40
  end
41
41
 
42
- def start_transaction(scope, sentry_trace)
42
+ def start_transaction(scope, env)
43
43
  options = { name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME }
44
- transaction = Sentry::Transaction.from_sentry_trace(sentry_trace, **options) if sentry_trace
44
+ transaction = Sentry.continue_trace(env, **options)
45
45
  Sentry.start_transaction(transaction: transaction, **options)
46
46
  end
47
47
 
@@ -58,9 +58,8 @@ module Sentry
58
58
  return yield unless Sentry.initialized?
59
59
 
60
60
  user = Sentry.get_current_scope.user
61
- transaction = Sentry.get_current_scope.get_transaction
62
61
  job["sentry_user"] = user unless user.empty?
63
- job["sentry_trace"] = transaction.to_sentry_trace if transaction
62
+ job["trace_propagation_headers"] = Sentry.get_trace_propagation_headers
64
63
  yield
65
64
  end
66
65
  end
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sidekiq
3
- VERSION = "5.10.0"
3
+ VERSION = "5.11.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.10.0"
25
+ spec.add_dependency "sentry-ruby", "~> 5.11.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.10.0
4
+ version: 5.11.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: 2023-07-04 00:00:00.000000000 Z
11
+ date: 2023-09-06 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.10.0
19
+ version: 5.11.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.10.0
26
+ version: 5.11.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement