sentry-rails 5.17.1 → 5.17.3

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: b19dc58e93c376375e4c0f121ad97d6f3487bfa531a4f13889388ceb90f6391a
4
- data.tar.gz: 012c885792f6877c75530a22195b420f0df60e494bf5c062c891b3a16ac646aa
3
+ metadata.gz: d004cdd6b80d76424d8684494a6a0565b5f5440ada51a6878280baa0a0c174e7
4
+ data.tar.gz: 747ed1691526ff296e90d697ab61bf6f6abfe5c63687904f7a1a12afa9a833d6
5
5
  SHA512:
6
- metadata.gz: 12d660a0f7eb769e2946d4a973865f62ec66fa62447e992f87443b392678a1b3fa712783eca3b7a746bda093ba9b30a2c2839341ea0e7f61c2a13ec3298e628d
7
- data.tar.gz: 62dee7a00bc360ab0c7445ba21a93323806948cb224f96559a3320c37b0556e19784d91fd7496d54ebf3e56df2a06053b511c46e440c96af964e50013c17cf2b
6
+ metadata.gz: dec86deec8fd26222ddc97c7568d471bdea6c75caaae49b4793f37e5235d81537b026e336136ad3b734101b15f16ebeeeb546d99c6255a4a93ed305ef758be74
7
+ data.tar.gz: b0ff142977ad7ece0e73a40cd3f434a2bb967efb6cc2040e5feb9448cf3963acfa535efb14d095efaf2f235923c3780f2f1a532cb9287344774e33b955618263
@@ -21,8 +21,7 @@ module Sentry
21
21
  span.set_data(:connection_id, payload[:connection_id])
22
22
 
23
23
  # we fallback to the base connection on rails < 6.0.0 since the payload doesn't have it
24
- base_connection = ActiveRecord::Base.connection
25
- connection ||= base_connection if payload[:connection_id] == base_connection.object_id
24
+ connection ||= ActiveRecord::Base.connection_pool.connections.find { |conn| conn.object_id == payload[:connection_id] }
26
25
  end
27
26
 
28
27
  next unless connection
@@ -1,5 +1,5 @@
1
1
  module Sentry
2
2
  module Rails
3
- VERSION = "5.17.1"
3
+ VERSION = "5.17.3"
4
4
  end
5
5
  end
data/sentry-rails.gemspec CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ["lib"]
24
24
 
25
25
  spec.add_dependency "railties", ">= 5.0"
26
- spec.add_dependency "sentry-ruby", "~> 5.17.1"
26
+ spec.add_dependency "sentry-ruby", "~> 5.17.3"
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentry-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.1
4
+ version: 5.17.3
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-03-15 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.17.1
33
+ version: 5.17.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.17.1
40
+ version: 5.17.3
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []