sentry-rails 6.1.1 → 6.1.2
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/lib/sentry/rails/log_subscribers/active_record_subscriber.rb +14 -10
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd85a162258fc33137da34d2f08bf5ce0feb0286213a0da47aa697f82e44396c
|
|
4
|
+
data.tar.gz: a5a14058e287ea961a28d1ca19d96fa954460148fe7366f323ba00663e5b2144
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6caef5a92e27daf55c92d2dc1b3e713b40be00645a3fdecd07b731acda5f7824266b766bb8614d90f1995a3a642c28f6f449487def3e72cf25bf2e33937aaab3
|
|
7
|
+
data.tar.gz: 3894faa286057a1cb21f6eec1affa796e6e22cea3f1e1ff2ecfc04b306873067a61c5d87fd9beab69cf21045a7b3c60f5e30319c95fd1db1e3adc6f323fec33b
|
|
@@ -50,12 +50,14 @@ module Sentry
|
|
|
50
50
|
|
|
51
51
|
binds = event.payload[:binds]
|
|
52
52
|
|
|
53
|
-
if Sentry.configuration.send_default_pii && !binds
|
|
53
|
+
if Sentry.configuration.send_default_pii && (binds && !binds.empty?)
|
|
54
54
|
type_casted_binds = type_casted_binds(event)
|
|
55
55
|
|
|
56
56
|
binds.each_with_index do |bind, index|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
key = bind.respond_to?(:name) ? bind.name : index.to_s
|
|
58
|
+
value = type_casted_binds[index].to_s
|
|
59
|
+
|
|
60
|
+
attributes["db.query.parameter.#{key}"] = value
|
|
59
61
|
end
|
|
60
62
|
end
|
|
61
63
|
|
|
@@ -73,13 +75,15 @@ module Sentry
|
|
|
73
75
|
)
|
|
74
76
|
end
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
def type_casted_binds(event)
|
|
79
|
+
binds = event.payload[:type_casted_binds]
|
|
80
|
+
|
|
81
|
+
# When a query is cached, binds are a callable,
|
|
82
|
+
# and under JRuby they're always a callable.
|
|
83
|
+
if binds.respond_to?(:call)
|
|
84
|
+
binds.call
|
|
85
|
+
else
|
|
86
|
+
binds
|
|
83
87
|
end
|
|
84
88
|
end
|
|
85
89
|
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentry-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.1.
|
|
4
|
+
version: 6.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry Team
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 6.1.
|
|
32
|
+
version: 6.1.2
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 6.1.
|
|
39
|
+
version: 6.1.2
|
|
40
40
|
description: A gem that provides Rails integration for the Sentry error logger
|
|
41
41
|
email: accounts@sentry.io
|
|
42
42
|
executables: []
|
|
@@ -89,15 +89,15 @@ files:
|
|
|
89
89
|
- lib/sentry/rails/tracing/active_support_subscriber.rb
|
|
90
90
|
- lib/sentry/rails/version.rb
|
|
91
91
|
- sentry-rails.gemspec
|
|
92
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/6.1.
|
|
92
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/6.1.2/sentry-rails
|
|
93
93
|
licenses:
|
|
94
94
|
- MIT
|
|
95
95
|
metadata:
|
|
96
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.1.
|
|
97
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.1.
|
|
98
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.1.
|
|
96
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/6.1.2/sentry-rails
|
|
97
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/6.1.2/sentry-rails
|
|
98
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/6.1.2/CHANGELOG.md
|
|
99
99
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
|
100
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/6.1.
|
|
100
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/6.1.2
|
|
101
101
|
rdoc_options: []
|
|
102
102
|
require_paths:
|
|
103
103
|
- lib
|