sentry-rails 5.19.0 → 5.20.0
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/.rubocop.yml +1 -0
- data/Gemfile +5 -3
- data/lib/sentry/rails/capture_exceptions.rb +1 -1
- data/lib/sentry/rails/configuration.rb +14 -14
- data/lib/sentry/rails/controller_transaction.rb +1 -1
- data/lib/sentry/rails/railtie.rb +2 -2
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be7750de5ef963c9b54690ff121fdedeb236002a719056f34ceaccc1dd1a45f9
|
|
4
|
+
data.tar.gz: ce895b75427bfe412df2ad9cc1e6418fa544b6c90419d38fcb4c0685f6cf849c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d3c3fada478272fb424f9f50d4ebece803b0833668fe93b50be47abbe305bc06c67613e965c6cd91d226945f8b321ed0fd42dc8153b80f448f6db62c793a663
|
|
7
|
+
data.tar.gz: 1328737cb5488973c3d3e25fef139ab5bcc6a08efc19503cab136f6eb6f6c22d48b51fc8593412f620a06ee8585783381bf9685f64a438987fd1709a9232cde1
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
../.rubocop.yml
|
data/Gemfile
CHANGED
|
@@ -6,7 +6,7 @@ gemspec
|
|
|
6
6
|
gem "sentry-ruby", path: "../sentry-ruby"
|
|
7
7
|
|
|
8
8
|
platform :jruby do
|
|
9
|
-
gem
|
|
9
|
+
gem "activerecord-jdbcmysql-adapter"
|
|
10
10
|
gem "jdbc-sqlite3"
|
|
11
11
|
end
|
|
12
12
|
|
|
@@ -24,11 +24,14 @@ else
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
if rails_version >= Gem::Version.new("
|
|
27
|
+
if rails_version >= Gem::Version.new("8.0.0.alpha")
|
|
28
28
|
gem "rails", github: "rails/rails"
|
|
29
|
+
gem "rspec-rails"
|
|
29
30
|
elsif rails_version >= Gem::Version.new("7.1.0")
|
|
30
31
|
gem "rails", "~> #{rails_version}"
|
|
32
|
+
gem "rspec-rails"
|
|
31
33
|
else
|
|
34
|
+
gem "rspec-rails", "~> 4.0"
|
|
32
35
|
gem "rails", "~> #{rails_version}"
|
|
33
36
|
gem "psych", "~> 3.0.0"
|
|
34
37
|
end
|
|
@@ -39,7 +42,6 @@ gem "sprockets-rails"
|
|
|
39
42
|
|
|
40
43
|
gem "sidekiq"
|
|
41
44
|
|
|
42
|
-
gem "rspec-rails", "~> 4.0"
|
|
43
45
|
|
|
44
46
|
ruby_version = Gem::Version.new(RUBY_VERSION)
|
|
45
47
|
|
|
@@ -2,7 +2,7 @@ module Sentry
|
|
|
2
2
|
module Rails
|
|
3
3
|
class CaptureExceptions < Sentry::Rack::CaptureExceptions
|
|
4
4
|
RAILS_7_1 = Gem::Version.new(::Rails.version) >= Gem::Version.new("7.1.0.alpha")
|
|
5
|
-
SPAN_ORIGIN =
|
|
5
|
+
SPAN_ORIGIN = "auto.http.rails".freeze
|
|
6
6
|
|
|
7
7
|
def initialize(_)
|
|
8
8
|
super
|
|
@@ -31,20 +31,20 @@ module Sentry
|
|
|
31
31
|
|
|
32
32
|
module Rails
|
|
33
33
|
IGNORE_DEFAULT = [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
"AbstractController::ActionNotFound",
|
|
35
|
+
"ActionController::BadRequest",
|
|
36
|
+
"ActionController::InvalidAuthenticityToken",
|
|
37
|
+
"ActionController::InvalidCrossOriginRequest",
|
|
38
|
+
"ActionController::MethodNotAllowed",
|
|
39
|
+
"ActionController::NotImplemented",
|
|
40
|
+
"ActionController::ParameterMissing",
|
|
41
|
+
"ActionController::RoutingError",
|
|
42
|
+
"ActionController::UnknownAction",
|
|
43
|
+
"ActionController::UnknownFormat",
|
|
44
|
+
"ActionDispatch::Http::MimeNegotiation::InvalidType",
|
|
45
|
+
"ActionController::UnknownHttpMethod",
|
|
46
|
+
"ActionDispatch::Http::Parameters::ParseError",
|
|
47
|
+
"ActiveRecord::RecordNotFound"
|
|
48
48
|
].freeze
|
|
49
49
|
|
|
50
50
|
ACTIVE_SUPPORT_LOGGER_SUBSCRIPTION_ITEMS_DEFAULT = {
|
data/lib/sentry/rails/railtie.rb
CHANGED
|
@@ -94,14 +94,14 @@ module Sentry
|
|
|
94
94
|
|
|
95
95
|
def inject_breadcrumbs_logger
|
|
96
96
|
if Sentry.configuration.breadcrumbs_logger.include?(:active_support_logger)
|
|
97
|
-
require
|
|
97
|
+
require "sentry/rails/breadcrumb/active_support_logger"
|
|
98
98
|
Sentry::Rails::Breadcrumb::ActiveSupportLogger.inject(Sentry.configuration.rails.active_support_logger_subscription_items)
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
if Sentry.configuration.breadcrumbs_logger.include?(:monotonic_active_support_logger)
|
|
102
102
|
return warn "Usage of `monotonic_active_support_logger` require a version of Rails >= 6.1, please upgrade your Rails version or use another logger" if ::Rails.version.to_f < 6.1
|
|
103
103
|
|
|
104
|
-
require
|
|
104
|
+
require "sentry/rails/breadcrumb/monotonic_active_support_logger"
|
|
105
105
|
Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.inject
|
|
106
106
|
end
|
|
107
107
|
end
|
data/lib/sentry/rails/version.rb
CHANGED
data/sentry-rails.gemspec
CHANGED
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.
|
|
4
|
+
version: 5.20.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-
|
|
11
|
+
date: 2024-09-27 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.
|
|
33
|
+
version: 5.20.0
|
|
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.
|
|
40
|
+
version: 5.20.0
|
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
|
42
42
|
email: accounts@sentry.io
|
|
43
43
|
executables: []
|
|
@@ -48,6 +48,7 @@ extra_rdoc_files:
|
|
|
48
48
|
files:
|
|
49
49
|
- ".gitignore"
|
|
50
50
|
- ".rspec"
|
|
51
|
+
- ".rubocop.yml"
|
|
51
52
|
- CHANGELOG.md
|
|
52
53
|
- Gemfile
|
|
53
54
|
- LICENSE.txt
|
|
@@ -84,15 +85,15 @@ files:
|
|
|
84
85
|
- lib/sentry/rails/tracing/active_storage_subscriber.rb
|
|
85
86
|
- lib/sentry/rails/version.rb
|
|
86
87
|
- sentry-rails.gemspec
|
|
87
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.
|
|
88
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
|
|
88
89
|
licenses:
|
|
89
90
|
- MIT
|
|
90
91
|
metadata:
|
|
91
|
-
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
|
92
|
-
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.
|
|
93
|
-
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.
|
|
92
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
|
|
93
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.0/sentry-rails
|
|
94
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.0/CHANGELOG.md
|
|
94
95
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
|
95
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.
|
|
96
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.20.0
|
|
96
97
|
post_install_message:
|
|
97
98
|
rdoc_options: []
|
|
98
99
|
require_paths:
|
|
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
109
|
- !ruby/object:Gem::Version
|
|
109
110
|
version: '0'
|
|
110
111
|
requirements: []
|
|
111
|
-
rubygems_version: 3.5.
|
|
112
|
+
rubygems_version: 3.5.16
|
|
112
113
|
signing_key:
|
|
113
114
|
specification_version: 4
|
|
114
115
|
summary: A gem that provides Rails integration for the Sentry error logger
|