sentry-rails 5.19.0 → 5.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f224892c221e7a3250fb8b51f7484699ce5e927e4d4bb6e757c0bd5dc232c3d
|
4
|
+
data.tar.gz: 5dd2b6914d7bdee52f83bfbcaf12d56b7044cd25fda0ef2d9ca736553254a306
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 536c8d9aa4c7e16c23452cd4e7ee675c5a7f1740567f0f99a806f5b2ae57721f4ffeced8e4430a43008bacc7921cfad827ae21efc99c5b901d1c6479975d1ab3
|
7
|
+
data.tar.gz: d7e621b58c24bbee5b7559ab81b5b12230af0ca3a01947107e76fa0dc6f11d804e2a1673cdde660e9304e81b3674f2d3574dc31909b5e03a82e7560555907b5f
|
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
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.platform = Gem::Platform::RUBY
|
12
12
|
spec.required_ruby_version = '>= 2.4'
|
13
13
|
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
|
14
|
-
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")
|
14
|
+
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples|\.rubocop\.yml)'`.split("\n")
|
15
15
|
|
16
16
|
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
|
17
17
|
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"
|
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
31
|
spec.add_dependency "railties", ">= 5.0"
|
32
|
-
spec.add_dependency "sentry-ruby", "~> 5.
|
32
|
+
spec.add_dependency "sentry-ruby", "~> 5.20.1"
|
33
33
|
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.
|
4
|
+
version: 5.20.1
|
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.1
|
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.1
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
42
42
|
email: accounts@sentry.io
|
43
43
|
executables: []
|
@@ -84,15 +84,15 @@ files:
|
|
84
84
|
- lib/sentry/rails/tracing/active_storage_subscriber.rb
|
85
85
|
- lib/sentry/rails/version.rb
|
86
86
|
- sentry-rails.gemspec
|
87
|
-
homepage: https://github.com/getsentry/sentry-ruby/tree/5.
|
87
|
+
homepage: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
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.
|
91
|
+
homepage_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
|
92
|
+
source_code_uri: https://github.com/getsentry/sentry-ruby/tree/5.20.1/sentry-rails
|
93
|
+
changelog_uri: https://github.com/getsentry/sentry-ruby/blob/5.20.1/CHANGELOG.md
|
94
94
|
bug_tracker_uri: https://github.com/getsentry/sentry-ruby/issues
|
95
|
-
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.
|
95
|
+
documentation_uri: http://www.rubydoc.info/gems/sentry-rails/5.20.1
|
96
96
|
post_install_message:
|
97
97
|
rdoc_options: []
|
98
98
|
require_paths:
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.5.
|
111
|
+
rubygems_version: 3.5.16
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: A gem that provides Rails integration for the Sentry error logger
|