sentry-sidekiq 0.1.2 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +2 -1
- data/Rakefile +3 -1
- data/lib/sentry/sidekiq/cleanup_middleware.rb +3 -1
- data/lib/sentry/sidekiq/error_handler.rb +3 -1
- data/lib/sentry/sidekiq/version.rb +1 -1
- data/sentry-sidekiq.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2381c7e962b8461b17f09da04d9a729960f62d6be46e12149fd732dc8e41d23
|
4
|
+
data.tar.gz: acf0beaefce9d7a176a7446b25b6010eac1c6d55af2a69a9040b4ab40a00240c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c0b869fda22432123e2317943085a2636c8b911a140f98b3b2cb1435f09271861d63320b6426ba8bc36f8d9cd5e5d68beb63a76d2ee1f8719f72f7517aa96c
|
7
|
+
data.tar.gz: f142b51cb00cfc48c36d0d0612caba41bb7e0f02720e491843b0bfecc46f1438afdd5121c461b3bd681956913a7887e17116b8a0797c48e34c712e7070375e5f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.1.1
|
4
|
+
|
5
|
+
- Use stricter dependency declaration [#1159](https://github.com/getsentry/sentry-ruby/pull/1159)
|
6
|
+
|
7
|
+
## 4.1.0
|
8
|
+
|
9
|
+
- Check SDK initialization before running integrations [#1151](https://github.com/getsentry/sentry-ruby/pull/1151)
|
10
|
+
- Fixes [#1145](https://github.com/getsentry/sentry-ruby/pull/1145)
|
11
|
+
|
12
|
+
## 4.0.0
|
13
|
+
|
14
|
+
- Only documents update for the official release and no API/feature changes.
|
15
|
+
|
16
|
+
## 0.2.0
|
17
|
+
|
18
|
+
- Major API changes: [1123](https://github.com/getsentry/sentry-ruby/pull/1123)
|
19
|
+
|
20
|
+
## 0.1.3
|
21
|
+
|
22
|
+
- Small fixes
|
23
|
+
|
3
24
|
## 0.1.2
|
4
25
|
|
5
26
|
Fix require reference
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@
|
|
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)
|
18
18
|
|
19
19
|
|
20
|
-
[Documentation](https://docs.sentry.io/
|
20
|
+
[Documentation](https://docs.sentry.io/platforms/ruby/guides/sidekiq/) | [Bug Tracker](https://github.com/getsentry/sentry-ruby/issues) | [Forum](https://forum.sentry.io/) | IRC: irc.freenode.net, #sentry
|
21
21
|
|
22
22
|
The official Ruby-language client and integration layer for the [Sentry](https://github.com/getsentry/sentry) error reporting API.
|
23
23
|
|
@@ -27,6 +27,7 @@ The official Ruby-language client and integration layer for the [Sentry](https:/
|
|
27
27
|
### Install
|
28
28
|
|
29
29
|
```ruby
|
30
|
+
gem "sentry-ruby"
|
30
31
|
gem "sentry-sidekiq"
|
31
32
|
```
|
32
33
|
|
data/Rakefile
CHANGED
@@ -2,6 +2,8 @@ module Sentry
|
|
2
2
|
module Sidekiq
|
3
3
|
class CleanupMiddleware
|
4
4
|
def call(_worker, job, queue)
|
5
|
+
return yield unless Sentry.initialized?
|
6
|
+
|
5
7
|
Sentry.clone_hub_to_current_thread
|
6
8
|
Sentry.with_scope do |scope|
|
7
9
|
scope.set_extras(sidekiq: job.merge("queue" => queue))
|
@@ -10,7 +12,7 @@ module Sentry
|
|
10
12
|
begin
|
11
13
|
yield
|
12
14
|
rescue => ex
|
13
|
-
Sentry.capture_exception(ex)
|
15
|
+
Sentry.capture_exception(ex, hint: { background: false })
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
@@ -6,13 +6,15 @@ module Sentry
|
|
6
6
|
SIDEKIQ_NAME = "Sidekiq".freeze
|
7
7
|
|
8
8
|
def call(ex, context)
|
9
|
+
return unless Sentry.initialized?
|
9
10
|
context = Sentry::Sidekiq::ContextFilter.new.filter_context(context)
|
10
11
|
|
11
12
|
Sentry.with_scope do |scope|
|
12
13
|
scope.set_transaction_name transaction_from_context(context)
|
13
14
|
Sentry.capture_exception(
|
14
15
|
ex,
|
15
|
-
extra: { sidekiq: context }
|
16
|
+
extra: { sidekiq: context },
|
17
|
+
hint: { background: false }
|
16
18
|
)
|
17
19
|
end
|
18
20
|
end
|
data/sentry-sidekiq.gemspec
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.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: 2020-
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sentry-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.1.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:
|
26
|
+
version: 4.1.0
|
27
27
|
description: A gem that provides Sidekiq integration for the Sentry error logger
|
28
28
|
email: accounts@sentry.io
|
29
29
|
executables: []
|