sentry-rails 5.11.0 → 5.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/Gemfile +17 -11
- data/README.md +1 -1
- data/lib/sentry/rails/configuration.rb +6 -1
- data/lib/sentry/rails/tracing/active_record_subscriber.rb +2 -0
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7ddebe5d3603e4e463a85c866633a8efc2c9a4e559450b29a1a23f9e62862d7
|
4
|
+
data.tar.gz: a4e5938fd4d4ca9af782e1934edb6818c9bb5d033fbd52e6181f808c72e7be80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a480ba7bf4e4c0a5790b7debdc1a35b2fc5c6c707804530acfd0699fd2cb0f45c8df4ae933c37d5e18d1fa24e6e7a23954f71aada985031111d4aa863f5c986
|
7
|
+
data.tar.gz: 69aab97414157f65969b57bd2585d123f5dd3ba87268c86d61f1d9ae77d42efd8c8b969ee0a10392037210d873f188ecc359a467573e174391d324feadc6540c
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -11,7 +11,7 @@ platform :jruby do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
rails_version = ENV["RAILS_VERSION"]
|
14
|
-
rails_version = "7.
|
14
|
+
rails_version = "7.1.0" if rails_version.nil?
|
15
15
|
rails_version = Gem::Version.new(rails_version)
|
16
16
|
|
17
17
|
if rails_version < Gem::Version.new("6.0.0")
|
@@ -20,10 +20,13 @@ else
|
|
20
20
|
gem "sqlite3", platform: :ruby
|
21
21
|
end
|
22
22
|
|
23
|
-
if rails_version
|
23
|
+
if rails_version >= Gem::Version.new("7.2.0.alpha")
|
24
24
|
gem "rails", github: "rails/rails"
|
25
|
+
elsif rails_version >= Gem::Version.new("7.1.0")
|
26
|
+
gem "rails", "~> #{rails_version}"
|
25
27
|
else
|
26
28
|
gem "rails", "~> #{rails_version}"
|
29
|
+
gem "psych", "~> 3.0.0"
|
27
30
|
end
|
28
31
|
|
29
32
|
gem "mini_magick"
|
@@ -39,22 +42,25 @@ gem 'simplecov'
|
|
39
42
|
gem "simplecov-cobertura", "~> 1.4"
|
40
43
|
gem "rexml"
|
41
44
|
|
42
|
-
|
43
|
-
# loofah changed the required ruby version in a patch so we need to explicitly pin it
|
44
|
-
gem "loofah", "2.20.0" if RUBY_VERSION.to_f < 2.5
|
45
|
+
ruby_version = Gem::Version.new(RUBY_VERSION)
|
45
46
|
|
46
|
-
|
47
|
+
if ruby_version < Gem::Version.new("2.5.0")
|
48
|
+
# https://github.com/flavorjones/loofah/pull/267
|
49
|
+
# loofah changed the required ruby version in a patch so we need to explicitly pin it
|
50
|
+
gem "loofah", "2.20.0"
|
51
|
+
end
|
47
52
|
|
48
|
-
if
|
53
|
+
if ruby_version >= Gem::Version.new("2.6.0")
|
49
54
|
gem "debug", github: "ruby/debug", platform: :ruby
|
55
|
+
gem "irb"
|
50
56
|
|
51
|
-
if
|
52
|
-
gem "
|
53
|
-
else
|
54
|
-
gem "irb"
|
57
|
+
if ruby_version >= Gem::Version.new("3.0.0")
|
58
|
+
gem "ruby-lsp-rspec"
|
55
59
|
end
|
56
60
|
end
|
57
61
|
|
62
|
+
gem "rake", "~> 12.0"
|
63
|
+
|
58
64
|
gem "pry"
|
59
65
|
|
60
66
|
gem "benchmark-ips"
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
[![Gem Version](https://img.shields.io/gem/v/sentry-rails.svg)](https://rubygems.org/gems/sentry-rails)
|
14
|
-
![Build Status](https://github.com/getsentry/sentry-ruby/workflows/
|
14
|
+
![Build Status](https://github.com/getsentry/sentry-ruby/actions/workflows/sentry_rails_test.yml/badge.svg)
|
15
15
|
[![Coverage Status](https://img.shields.io/codecov/c/github/getsentry/sentry-ruby/master?logo=codecov)](https://codecov.io/gh/getsentry/sentry-ruby/branch/master)
|
16
16
|
[![Gem](https://img.shields.io/gem/dt/sentry-rails.svg)](https://rubygems.org/gems/sentry-rails/)
|
17
17
|
[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=sentry-rails&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=sentry-rails&package-manager=bundler&version-scheme=semver)
|
@@ -12,7 +12,12 @@ module Sentry
|
|
12
12
|
@excluded_exceptions = @excluded_exceptions.concat(Sentry::Rails::IGNORE_DEFAULT)
|
13
13
|
|
14
14
|
if ::Rails.logger
|
15
|
-
|
15
|
+
if ::Rails.logger.respond_to?(:broadcasts)
|
16
|
+
dupped_broadcasts = ::Rails.logger.broadcasts.map(&:dup)
|
17
|
+
@logger = ::ActiveSupport::BroadcastLogger.new(*dupped_broadcasts)
|
18
|
+
else
|
19
|
+
@logger = ::Rails.logger.dup
|
20
|
+
end
|
16
21
|
else
|
17
22
|
@logger.warn(Sentry::LOGGER_PROGNAME) do
|
18
23
|
<<~MSG
|
@@ -33,6 +33,8 @@ module Sentry
|
|
33
33
|
connection.pool.spec.config
|
34
34
|
end
|
35
35
|
|
36
|
+
next unless db_config
|
37
|
+
|
36
38
|
span.set_data(Span::DataConventions::DB_SYSTEM, db_config[:adapter]) if db_config[:adapter]
|
37
39
|
span.set_data(Span::DataConventions::DB_NAME, db_config[:database]) if db_config[:database]
|
38
40
|
span.set_data(Span::DataConventions::SERVER_ADDRESS, db_config[:host]) if db_config[:host]
|
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.12.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: 2023-
|
11
|
+
date: 2023-10-10 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.12.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.12.0
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
42
42
|
email: accounts@sentry.io
|
43
43
|
executables: []
|