sentry-sidekiq 5.17.3 → 5.18.1
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 +11 -2
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/sentry-sidekiq.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80ec14a1ec9756371d1fb62097d5545a4989dbd364bc98a2cf297d96043bb2da
|
4
|
+
data.tar.gz: 6bb5d3701403bf6113634b5bb30df387e553ecaa0243a6d21862d45fd6f99366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a397120d895b34b6d3649cfef59fa6fdf35a33c35eba7478487d9ab3272aee3eef1d7540098d59092e8abfe90f5cbdfffa08b47c5202537270450c42d693206
|
7
|
+
data.tar.gz: edcceeb6f0f6be56796275cf1308adc4de087047d60fed5d84f28135e57fabc49ff1f239216c4f70ae566be3af56d79b517c0bea1e72f2d9c418cfcab38a5da4
|
@@ -1,9 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'sentry/sidekiq/context_filter'
|
2
4
|
|
3
5
|
module Sentry
|
4
6
|
module Sidekiq
|
5
7
|
class SentryContextServerMiddleware
|
6
|
-
OP_NAME = "queue.sidekiq"
|
8
|
+
OP_NAME = "queue.sidekiq"
|
9
|
+
SPAN_ORIGIN = "auto.queue.sidekiq"
|
7
10
|
|
8
11
|
def call(_worker, job, queue)
|
9
12
|
return yield unless Sentry.initialized?
|
@@ -40,7 +43,13 @@ module Sentry
|
|
40
43
|
end
|
41
44
|
|
42
45
|
def start_transaction(scope, env)
|
43
|
-
options = {
|
46
|
+
options = {
|
47
|
+
name: scope.transaction_name,
|
48
|
+
source: scope.transaction_source,
|
49
|
+
op: OP_NAME,
|
50
|
+
origin: SPAN_ORIGIN
|
51
|
+
}
|
52
|
+
|
44
53
|
transaction = Sentry.continue_trace(env, **options)
|
45
54
|
Sentry.start_transaction(transaction: transaction, **options)
|
46
55
|
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.18.1"
|
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.18.1
|
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-
|
11
|
+
date: 2024-07-02 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.18.1
|
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.18.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
94
|
+
rubygems_version: 3.5.11
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: A gem that provides Sidekiq integration for the Sentry error logger
|