sentry-rails 5.17.1 → 5.17.2

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: 2e492295055915f03b73b10b5869ce3d8807e184dc4d16bce9742c07dfb372e9
4
+ data.tar.gz: 5cf8b66973c52faf55b4aac1a49491939e10af98f97b5a6dc5b8927de5e6cf2b
5
5
  SHA512:
6
- metadata.gz: 12d660a0f7eb769e2946d4a973865f62ec66fa62447e992f87443b392678a1b3fa712783eca3b7a746bda093ba9b30a2c2839341ea0e7f61c2a13ec3298e628d
7
- data.tar.gz: 62dee7a00bc360ab0c7445ba21a93323806948cb224f96559a3320c37b0556e19784d91fd7496d54ebf3e56df2a06053b511c46e440c96af964e50013c17cf2b
6
+ metadata.gz: ebe7dcf763a8e0d4ddd1621b681968196b45dc30502d5a054065786e6e84610f27b400b04c575df99a68282f89568d1ad99dbc149cac8e01e2183d3e56da3de1
7
+ data.tar.gz: a8b6a18a5bfaf3832252113f1c48667a8e61e573eb0e28d54225ac7b1f4fa8e9fa7e392032d448272bb743e9d58fbc21bed391eba636e9b507f95d4b2a72bf45
@@ -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.2"
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.2"
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.2
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-03 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.2
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.2
41
41
  description: A gem that provides Rails integration for the Sentry error logger
42
42
  email: accounts@sentry.io
43
43
  executables: []