sentry-sidekiq 5.16.1 → 5.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/example/Gemfile +0 -1
- data/lib/sentry/sidekiq/sentry_context_middleware.rb +11 -2
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/lib/sentry/sidekiq-scheduler/scheduler.rb +3 -2
- data/sentry-sidekiq.gemspec +11 -5
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b5008ef9e8d8d36fe1cea7d3025965cc916e8562eb1c291d5e0221e7adae9f3
|
4
|
+
data.tar.gz: 17b28ea1ef876282510ffcf6598935e33f88dd314639b6817282b32546df724b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dbc48bc6ac545550a6e1f5eb433a9ef08a929cea7f962f68ed24a961a633de680fca07fb3f577a551e5a3ae80e9b733154f30377e148214fc96417c19abc8fb
|
7
|
+
data.tar.gz: 0b0323c1ebf52d086067c8af134462cfd32fd2a26fd88c3848d75a0c31a393f500848bda7abaf5c27260f30179363320441809795afc5128648c26f54364ec75
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/example/Gemfile
CHANGED
@@ -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
|
@@ -35,7 +35,8 @@ module Sentry
|
|
35
35
|
# For cron, every, or interval jobs — grab their schedule.
|
36
36
|
# Rufus::Scheduler::EveryJob stores it's frequency in seconds,
|
37
37
|
# so we convert it to minutes before passing in to the monitor.
|
38
|
-
monitor_config =
|
38
|
+
monitor_config =
|
39
|
+
case interval_type
|
39
40
|
when "cron"
|
40
41
|
# fugit is a second order dependency of sidekiq-scheduler via rufus-scheduler
|
41
42
|
parsed_cron = ::Fugit.parse_cron(schedule)
|
@@ -52,7 +53,7 @@ module Sentry
|
|
52
53
|
end
|
53
54
|
when "every", "interval"
|
54
55
|
Sentry::Cron::MonitorConfig.from_interval(rufus_job.frequency.to_i / 60, :minute)
|
55
|
-
|
56
|
+
end
|
56
57
|
|
57
58
|
# If we couldn't build a monitor config, it's either an error, or
|
58
59
|
# it's a one-time job (interval_type is in, or at), in which case
|
data/sentry-sidekiq.gemspec
CHANGED
@@ -7,21 +7,27 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.description = spec.summary = "A gem that provides Sidekiq integration for the Sentry error logger"
|
8
8
|
spec.email = "accounts@sentry.io"
|
9
9
|
spec.license = 'MIT'
|
10
|
-
spec.homepage = "https://github.com/getsentry/sentry-ruby"
|
11
10
|
|
12
11
|
spec.platform = Gem::Platform::RUBY
|
13
12
|
spec.required_ruby_version = '>= 2.4'
|
14
13
|
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
|
15
14
|
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")
|
16
15
|
|
17
|
-
|
18
|
-
spec.
|
19
|
-
|
16
|
+
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
|
17
|
+
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
|
18
|
+
|
19
|
+
spec.metadata = {
|
20
|
+
"homepage_uri" => spec.homepage,
|
21
|
+
"source_code_uri" => spec.homepage,
|
22
|
+
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
|
23
|
+
"bug_tracker_uri" => "#{github_root_uri}/issues",
|
24
|
+
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
|
25
|
+
}
|
20
26
|
|
21
27
|
spec.bindir = "exe"
|
22
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
29
|
spec.require_paths = ["lib"]
|
24
30
|
|
25
|
-
spec.add_dependency "sentry-ruby", "~> 5.
|
31
|
+
spec.add_dependency "sentry-ruby", "~> 5.18.2"
|
26
32
|
spec.add_dependency "sidekiq", ">= 3.0"
|
27
33
|
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.2
|
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-23 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.2
|
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.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,13 +69,15 @@ files:
|
|
69
69
|
- lib/sentry/sidekiq/sentry_context_middleware.rb
|
70
70
|
- lib/sentry/sidekiq/version.rb
|
71
71
|
- sentry-sidekiq.gemspec
|
72
|
-
homepage: https://github.com/getsentry/sentry-ruby
|
72
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-sidekiq
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata:
|
76
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby
|
77
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby
|
78
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/
|
76
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-sidekiq
|
77
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.18.2/sentry-sidekiq
|
78
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.18.2/CHANGELOG.md
|
79
|
+
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
80
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-sidekiq/5.18.2
|
79
81
|
post_install_message:
|
80
82
|
rdoc_options: []
|
81
83
|
require_paths:
|
@@ -91,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
93
|
- !ruby/object:Gem::Version
|
92
94
|
version: '0'
|
93
95
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
96
|
+
rubygems_version: 3.5.11
|
95
97
|
signing_key:
|
96
98
|
specification_version: 4
|
97
99
|
summary: A gem that provides Sidekiq integration for the Sentry error logger
|