sentry-rails 5.22.1 → 5.22.4
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/Gemfile +1 -1
- data/lib/sentry/rails/backtrace_cleaner.rb +1 -1
- data/lib/sentry/rails/error_subscriber.rb +1 -14
- data/lib/sentry/rails/tracing/active_record_subscriber.rb +1 -0
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +10 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a01e4b4cb8435e45c55ef49c7415b4e1145ad0e817895c908aed0dff99295da1
|
4
|
+
data.tar.gz: 3fdb25ef0d61554468bb0ab129ebbe22eee3507fcafede1111b81a664da0ce9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1789a356f8314aa26a78ce2d773bdd6f4da647b899a3e77b45dc1e9986291cc43ab96ee0ed69fd14c365c1512edf79f0bde5d2748c5650d24c8ff4015dd741bb
|
7
|
+
data.tar.gz: 3d610050d3dd67ddbadbd847d05ff31a5a52dbfbafd743761ad46bf06e5c0d5426cad238b1d79ac4e3b858ffed129edae114ef5ce110eba44256d0fa1d61ac23
|
data/Gemfile
CHANGED
@@ -22,7 +22,7 @@ gem "rails", "~> #{rails_version}"
|
|
22
22
|
|
23
23
|
if rails_version >= Gem::Version.new("8.0.0")
|
24
24
|
gem "rspec-rails"
|
25
|
-
gem "sqlite3", platform: :ruby
|
25
|
+
gem "sqlite3", "~> 2.1.1", platform: :ruby
|
26
26
|
elsif rails_version >= Gem::Version.new("7.1.0")
|
27
27
|
gem "rspec-rails"
|
28
28
|
gem "sqlite3", "~> 1.7.3", platform: :ruby
|
@@ -7,7 +7,7 @@ module Sentry
|
|
7
7
|
module Rails
|
8
8
|
class BacktraceCleaner < ActiveSupport::BacktraceCleaner
|
9
9
|
APP_DIRS_PATTERN = /\A(?:\.\/)?(?:app|config|lib|test|\(\w*\))/
|
10
|
-
RENDER_TEMPLATE_PATTERN = /:in
|
10
|
+
RENDER_TEMPLATE_PATTERN = /:in (?:`|').*_\w+_{2,3}\d+_\d+'/
|
11
11
|
|
12
12
|
def initialize
|
13
13
|
super
|
@@ -27,20 +27,7 @@ module Sentry
|
|
27
27
|
hint.merge!(context.delete(:hint))
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
case error
|
33
|
-
when String
|
34
|
-
Sentry::Rails.capture_message(error, **options)
|
35
|
-
when Exception
|
36
|
-
Sentry::Rails.capture_exception(error, **options)
|
37
|
-
else
|
38
|
-
log_debug("Expected an Exception or a String, got: #{error.inspect}")
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def log_debug(message)
|
43
|
-
Sentry.configuration.logger.debug(message)
|
30
|
+
Sentry::Rails.capture_exception(error, level: severity, contexts: { "rails.error" => context }, tags: tags, hint: hint)
|
44
31
|
end
|
45
32
|
end
|
46
33
|
end
|
@@ -71,6 +71,7 @@ module Sentry
|
|
71
71
|
|
72
72
|
if source_location
|
73
73
|
backtrace_line = Sentry::Backtrace::Line.parse(source_location)
|
74
|
+
|
74
75
|
span.set_data(Span::DataConventions::FILEPATH, backtrace_line.file) if backtrace_line.file
|
75
76
|
span.set_data(Span::DataConventions::LINENO, backtrace_line.number) if backtrace_line.number
|
76
77
|
span.set_data(Span::DataConventions::FUNCTION, backtrace_line.method) if backtrace_line.method
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentry-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.22.
|
4
|
+
version: 5.22.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry Team
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: railties
|
@@ -30,14 +29,14 @@ dependencies:
|
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: 5.22.
|
32
|
+
version: 5.22.4
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
|
-
version: 5.22.
|
39
|
+
version: 5.22.4
|
41
40
|
description: A gem that provides Rails integration for the Sentry error logger
|
42
41
|
email: accounts@sentry.io
|
43
42
|
executables: []
|
@@ -85,16 +84,15 @@ files:
|
|
85
84
|
- lib/sentry/rails/tracing/active_support_subscriber.rb
|
86
85
|
- lib/sentry/rails/version.rb
|
87
86
|
- sentry-rails.gemspec
|
88
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
87
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-rails
|
89
88
|
licenses:
|
90
89
|
- MIT
|
91
90
|
metadata:
|
92
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
93
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.
|
94
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.22.
|
91
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-rails
|
92
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.22.4/sentry-rails
|
93
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.22.4/CHANGELOG.md
|
95
94
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
96
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.22.
|
97
|
-
post_install_message:
|
95
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.22.4
|
98
96
|
rdoc_options: []
|
99
97
|
require_paths:
|
100
98
|
- lib
|
@@ -109,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
107
|
- !ruby/object:Gem::Version
|
110
108
|
version: '0'
|
111
109
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
113
|
-
signing_key:
|
110
|
+
rubygems_version: 3.6.2
|
114
111
|
specification_version: 4
|
115
112
|
summary: A gem that provides Rails integration for the Sentry error logger
|
116
113
|
test_files: []
|