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 +4 -4
- data/lib/sentry/sidekiq/sentry_context_middleware.rb +4 -5
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/sentry-sidekiq.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: b2cf3275a4962da81ac949b8faffe8e99653f97568e98cffd5cccdf101b6b550
|
4
|
+
data.tar.gz: 958f3643153a4ba0eeac48368b7fff31831f987b004294ddc5acf8d585c87533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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["
|
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,
|
42
|
+
def start_transaction(scope, env)
|
43
43
|
options = { name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME }
|
44
|
-
transaction = Sentry
|
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["
|
62
|
+
job["trace_propagation_headers"] = Sentry.get_trace_propagation_headers
|
64
63
|
yield
|
65
64
|
end
|
66
65
|
end
|
data/sentry-sidekiq.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.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.
|
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-
|
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.
|
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.
|
26
|
+
version: 5.11.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|