sentry-delayed_job 4.2.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/sentry-delayed_job.rb +1 -1
- data/lib/sentry/delayed_job/plugin.rb +4 -2
- data/lib/sentry/delayed_job/version.rb +1 -1
- data/sentry-delayed_job.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9888d4edc96b1c7c6b3c6241fbcc8f56ea67e043bffaac3132db17f06403ec9b
|
4
|
+
data.tar.gz: c26084a79d7c879ee07cd2f5e3a14a3e3fb557b36051d10731cc9349926bed22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d8145b047c778322f7476500b9227267efabf8ba5972318cdb9b319c7780f22a6c1f432f538e9434f64ea7fbb41b4be610a2ccafaf0989e564bef67d19541e6
|
7
|
+
data.tar.gz: 841500c12895f082dfde45c8d376a19ca817f8c023723b43908137cc41fcfb774e7dff7756555c595c6d1582ed9d1bbe055da6061575bed428d2e86d0f73bd13
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 4.3.1
|
4
|
+
|
5
|
+
- Return delayed job when the SDK is not initialized [#1373](https://github.com/getsentry/sentry-ruby/pull/1373)
|
6
|
+
- Fixes [#1334](https://github.com/getsentry/sentry-ruby/issues/1334)
|
7
|
+
|
8
|
+
## 4.3.0
|
9
|
+
|
10
|
+
- No integration-specific changes
|
11
|
+
|
12
|
+
## 4.2.1
|
13
|
+
|
14
|
+
- Use ::Rails::Railtie for checking Rails definition [#1287](https://github.com/getsentry/sentry-ruby/pull/1284)
|
15
|
+
- Convert job id to string to avoid weird syntax error [#1285](https://github.com/getsentry/sentry-ruby/pull/1285)
|
16
|
+
- Fixes [#1282](https://github.com/getsentry/sentry-ruby/issues/1282)
|
17
|
+
|
3
18
|
## 4.2.0
|
4
19
|
|
5
20
|
- First release!
|
data/lib/sentry-delayed_job.rb
CHANGED
@@ -6,9 +6,11 @@ module Sentry
|
|
6
6
|
class Plugin < ::Delayed::Plugin
|
7
7
|
callbacks do |lifecycle|
|
8
8
|
lifecycle.around(:invoke_job) do |job, *args, &block|
|
9
|
+
next block.call(job, *args) unless Sentry.initialized?
|
10
|
+
|
9
11
|
Sentry.with_scope do |scope|
|
10
12
|
scope.set_extras(**generate_extra(job))
|
11
|
-
scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id)
|
13
|
+
scope.set_tags("delayed_job.queue" => job.queue, "delayed_job.id" => job.id.to_s)
|
12
14
|
|
13
15
|
begin
|
14
16
|
block.call(job, *args)
|
@@ -23,7 +25,7 @@ module Sentry
|
|
23
25
|
|
24
26
|
def self.generate_extra(job)
|
25
27
|
extra = {
|
26
|
-
"delayed_job.id": job.id,
|
28
|
+
"delayed_job.id": job.id.to_s,
|
27
29
|
"delayed_job.priority": job.priority,
|
28
30
|
"delayed_job.attempts": job.attempts,
|
29
31
|
"delayed_job.run_at": job.run_at,
|
data/sentry-delayed_job.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.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: 2021-
|
11
|
+
date: 2021-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sentry-ruby-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.3.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: 4.
|
26
|
+
version: 4.3.0
|
27
27
|
description: A gem that provides DelayedJob integration for the Sentry error logger
|
28
28
|
email: accounts@sentry.io
|
29
29
|
executables: []
|