sentry-sidekiq 5.8.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +15 -6
- data/README.md +1 -1
- data/lib/sentry/sidekiq/error_handler.rb +2 -0
- 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 -5
- data/CODE_OF_CONDUCT.md +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbee9fb2c7ce4efbbb53923d02625f15d61a03a7fa00911441f46ae6a6ccd8bf
|
4
|
+
data.tar.gz: b404496bc93b23f0bb05ef908353db8a31ed43daad05774c5e310a62be73ea23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec8e07f20953f3a5afc0ed33ede9b4517296a30eec2696f0b7c059bcd0fe35ec00d7bc23b9e9c847ee981a641148f0a74644d6e28e9e7023e4f8dd7db8e27349
|
7
|
+
data.tar.gz: bca2a42ab5d1347818a8e1543fa75d5f04488025173e35671b3e0d400eeb2ba79835b2d0239efdb34ed1a10a427235bed0b34c300b00902f2ea4e7c805df629a
|
data/Gemfile
CHANGED
@@ -3,23 +3,32 @@ git_source(:github) { |name| "https://github.com/#{name}.git" }
|
|
3
3
|
|
4
4
|
# Specify your gem's dependencies in sentry-ruby.gemspec
|
5
5
|
gemspec
|
6
|
+
gem "sentry-ruby", path: "../sentry-ruby"
|
7
|
+
gem "sentry-rails", path: "../sentry-rails"
|
6
8
|
|
7
9
|
gem "rake", "~> 12.0"
|
8
10
|
gem "rspec", "~> 3.0"
|
9
11
|
gem 'simplecov'
|
10
12
|
gem "simplecov-cobertura", "~> 1.4"
|
11
13
|
gem "rexml"
|
14
|
+
# https://github.com/flavorjones/loofah/pull/267
|
15
|
+
# loofah changed the required ruby version in a patch so we need to explicitly pin it
|
16
|
+
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
|
17
|
+
|
18
|
+
# For https://github.com/ruby/psych/issues/655
|
19
|
+
gem "psych", "5.1.0"
|
12
20
|
|
13
21
|
sidekiq_version = ENV["SIDEKIQ_VERSION"]
|
14
22
|
sidekiq_version = "6.0" if sidekiq_version.nil?
|
23
|
+
sidekiq_version = Gem::Version.new(sidekiq_version)
|
15
24
|
|
16
|
-
gem "rails", "< 7.0"
|
17
25
|
gem "sidekiq", "~> #{sidekiq_version}"
|
18
26
|
|
19
|
-
gem "
|
20
|
-
gem "sentry-rails", path: "../sentry-rails"
|
27
|
+
gem "rails", "> 5.0.0", "< 7.1.0"
|
21
28
|
|
22
|
-
|
23
|
-
gem "debug", github: "ruby/debug", platform: :ruby
|
24
|
-
gem "
|
29
|
+
if RUBY_VERSION.to_f >= 2.6
|
30
|
+
gem "debug", github: "ruby/debug", platform: :ruby
|
31
|
+
gem "irb"
|
32
|
+
end
|
25
33
|
|
34
|
+
gem "pry"
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
[![Gem Version](https://img.shields.io/gem/v/sentry-sidekiq.svg)](https://rubygems.org/gems/sentry-sidekiq)
|
14
|
-
![Build Status](https://github.com/getsentry/sentry-ruby/workflows/
|
14
|
+
![Build Status](https://github.com/getsentry/sentry-ruby/actions/workflows/sentry_sidekiq_test.yml/badge.svg)
|
15
15
|
[![Coverage Status](https://img.shields.io/codecov/c/github/getsentry/sentry-ruby/master?logo=codecov)](https://codecov.io/gh/getsentry/sentry-ruby/branch/master)
|
16
16
|
[![Gem](https://img.shields.io/gem/dt/sentry-sidekiq.svg)](https://rubygems.org/gems/sentry-sidekiq/)
|
17
17
|
[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-sidekiq&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-sidekiq&package-manager=bundler&version-scheme=semver)
|
@@ -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.13.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.13.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-11-09 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.13.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.13.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,6 @@ files:
|
|
49
49
|
- ".gitignore"
|
50
50
|
- ".rspec"
|
51
51
|
- CHANGELOG.md
|
52
|
-
- CODE_OF_CONDUCT.md
|
53
52
|
- Gemfile
|
54
53
|
- LICENSE.txt
|
55
54
|
- Makefile
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at stan001212@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: https://contributor-covenant.org
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|