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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99c7773fed4941672765e6032cd6fa034ede2fa1af7ddcbe717d696e7e73f96d
4
- data.tar.gz: c059026ff1fb540d7bb7b47ab358a842d1ef2473ae9a32b8114663bead468be0
3
+ metadata.gz: 4b5008ef9e8d8d36fe1cea7d3025965cc916e8562eb1c291d5e0221e7adae9f3
4
+ data.tar.gz: 17b28ea1ef876282510ffcf6598935e33f88dd314639b6817282b32546df724b
5
5
  SHA512:
6
- metadata.gz: d9249aa9401c67882c6a015eb0346e4e7c916399d1ea2e2175d7b72ef49c2c4cf6cc5ae2ae84a2855bd2dd5969cd7729cd4bfc9f526b42f8e397a3f4bcaf2c89
7
- data.tar.gz: 944851f9e32d13bd327e1efb4a4dc42c2d24fffd7d408afce9be5342a6b229ee383edfe07a73076b5d527296db4807f98034e3c6c0a529c7986737f0a5b55e93
6
+ metadata.gz: 4dbc48bc6ac545550a6e1f5eb433a9ef08a929cea7f962f68ed24a961a633de680fca07fb3f577a551e5a3ae80e9b733154f30377e148214fc96417c19abc8fb
7
+ data.tar.gz: 0b0323c1ebf52d086067c8af134462cfd32fd2a26fd88c3848d75a0c31a393f500848bda7abaf5c27260f30179363320441809795afc5128648c26f54364ec75
data/Gemfile CHANGED
@@ -24,6 +24,6 @@ if RUBY_VERSION.to_f >= 2.7 && sidekiq_version >= Gem::Version.new("6.0")
24
24
  gem "sidekiq-scheduler"
25
25
  end
26
26
 
27
- gem "rails", "> 5.0.0", "< 7.1.0"
27
+ gem "rails", "> 5.0.0"
28
28
 
29
29
  eval_gemfile File.expand_path("../Gemfile", __dir__)
data/Rakefile CHANGED
@@ -5,4 +5,4 @@ RSpec::Core::RakeTask.new(:spec).tap do |task|
5
5
  task.rspec_opts = "--order rand"
6
6
  end
7
7
 
8
- task :default => :spec
8
+ task default: :spec
data/example/Gemfile CHANGED
@@ -4,5 +4,4 @@ gem "sidekiq"
4
4
  gem "sentry-sidekiq", path: "../"
5
5
  gem "sentry-ruby", path: "../../sentry-ruby"
6
6
 
7
- gem "pry"
8
7
  gem "debug", github: "ruby/debug"
@@ -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".freeze
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 = { name: scope.transaction_name, source: scope.transaction_source, op: OP_NAME }
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
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Sidekiq
3
- VERSION = "5.16.1"
3
+ VERSION = "5.18.2"
4
4
  end
5
5
  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 = case interval_type
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
- end
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
@@ -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
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
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.16.1"
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.16.1
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-01-09 00:00:00.000000000 Z
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.16.1
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.16.1
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/master/CHANGELOG.md
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.1.6
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