sentry-resque 5.17.3 → 5.18.0

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: 26b0b7fedea3109a22a6ddd08cf012834228a5ee8995ca59d6955c7aca1b49a8
4
- data.tar.gz: 3ba120eb331ca7e440ce0bf329c08cf3b05ed54c7d53fd16b7051bfff6c36369
3
+ metadata.gz: 14940c62edffc261d0ea43732998c7361efce27d8ebe947a9d19cc5545578d95
4
+ data.tar.gz: 250abbd48df0a57c81b546dfa868c4d0b6bed4a92804935925776dc4a43844df
5
5
  SHA512:
6
- metadata.gz: acdebf6a97ee7bd0c31921113bcf65aca3d545402c47f530b70834ecdc6402fd15132c7aeef6670c9579f18d4a04170b86b7983da1da7a944b9104f3f3605f9a
7
- data.tar.gz: 14eed1e8cb8b0e2d11359ac3df6b94f116ef547de62be3a800ad17c23794825a14bec0a3a5b046f230f2daf80c993315149f5fdb3bc6601081d8fc013ffa8c62
6
+ metadata.gz: cdaa65ee17610031947a0ed8d84e5f20c8782fad047a443d3da4dbc0c53d3f2dc8116649571023e3cf58cad04ce76a15f5815bd698f9eeff4d9167a5072bfd7f
7
+ data.tar.gz: fc086f032af8df21e4feae1a753edcb77bd0d2d221ef8dbb1d3d91eee52dbeb8008e24fbbfeeb0fa8ae1722ed84c55cd2f2793748171f5e8225bada1702cc4ce
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Resque
3
- VERSION = "5.17.3"
3
+ VERSION = "5.18.0"
4
4
  end
5
5
  end
data/lib/sentry/resque.rb CHANGED
@@ -15,6 +15,8 @@ module Sentry
15
15
  end
16
16
 
17
17
  class SentryReporter
18
+ SPAN_ORIGIN = "auto.queue.resque"
19
+
18
20
  class << self
19
21
  def record(queue, worker, payload, &block)
20
22
  Sentry.with_scope do |scope|
@@ -25,7 +27,13 @@ module Sentry
25
27
 
26
28
  name = contexts.dig(:"Active-Job", :job_class) || contexts.dig(:"Resque", :job_class)
27
29
  scope.set_transaction_name(name, source: :task)
28
- transaction = Sentry.start_transaction(name: scope.transaction_name, source: scope.transaction_source, op: "queue.resque")
30
+ transaction = Sentry.start_transaction(
31
+ name: scope.transaction_name,
32
+ source: scope.transaction_source,
33
+ op: "queue.resque",
34
+ origin: SPAN_ORIGIN
35
+ )
36
+
29
37
  scope.set_span(transaction) if transaction
30
38
 
31
39
  yield
@@ -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.17.3"
25
+ spec.add_dependency "sentry-ruby", "~> 5.18.0"
26
26
  spec.add_dependency "resque", ">= 1.24"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.3
4
+ version: 5.18.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: 2024-04-11 00:00:00.000000000 Z
11
+ date: 2024-06-25 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.17.3
19
+ version: 5.18.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.17.3
26
+ version: 5.18.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: resque
29
29
  requirement: !ruby/object:Gem::Requirement