sentry-rails 5.18.0 → 5.18.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 -2
- data/lib/sentry/rails/tracing/active_record_subscriber.rb +5 -7
- data/lib/sentry/rails/version.rb +1 -1
- data/sentry-rails.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f37e46eaedbb7739f9def9819546a7f4b1457c7fefd076bb394104fdf18910c1
|
4
|
+
data.tar.gz: f7360c8d456797deef74837c24ee44ae7a5fd875cc602b83382ac345d6498c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5ec2e4609761381f9414e88c58559086dae1fb177d8f7b9a91e52bce88b3ea82f9f201d4aabd498e39d52f91637a7a1d5778f726d91afa1138f429136a96294
|
7
|
+
data.tar.gz: e58d7d66bb42a9dc0ff8679d7667c9c9bcb1fe268313c1fced2a6bd8713bf04b2dd95d407547b95052a8f57a9e93a393ace8e03108c9d9491bbc727414983944
|
data/Gemfile
CHANGED
@@ -17,8 +17,11 @@ rails_version = Gem::Version.new(rails_version)
|
|
17
17
|
if rails_version < Gem::Version.new("6.0.0")
|
18
18
|
gem "sqlite3", "~> 1.3.0", platform: :ruby
|
19
19
|
else
|
20
|
-
|
21
|
-
|
20
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.7.0")
|
21
|
+
gem "sqlite3", "~> 1.7.3", platform: :ruby
|
22
|
+
else
|
23
|
+
gem "sqlite3", "~> 1.6.9", platform: :ruby
|
24
|
+
end
|
22
25
|
end
|
23
26
|
|
24
27
|
if rails_version >= Gem::Version.new("7.2.0.alpha")
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require "sentry/rails/tracing/abstract_subscriber"
|
2
4
|
|
3
5
|
module Sentry
|
@@ -5,19 +7,15 @@ module Sentry
|
|
5
7
|
module Tracing
|
6
8
|
class ActiveRecordSubscriber < AbstractSubscriber
|
7
9
|
EVENT_NAMES = ["sql.active_record"].freeze
|
8
|
-
SPAN_PREFIX = "db."
|
9
|
-
SPAN_ORIGIN = "auto.db.rails"
|
10
|
+
SPAN_PREFIX = "db."
|
11
|
+
SPAN_ORIGIN = "auto.db.rails"
|
10
12
|
EXCLUDED_EVENTS = ["SCHEMA", "TRANSACTION"].freeze
|
11
13
|
|
12
14
|
SUPPORT_SOURCE_LOCATION = ActiveSupport::BacktraceCleaner.method_defined?(:clean_frame)
|
13
15
|
|
14
16
|
if SUPPORT_SOURCE_LOCATION
|
15
|
-
# Need to be specific down to the lib path so queries generated in specs don't get ignored
|
16
|
-
SENTRY_RUBY_PATH = File.join(Gem::Specification.find_by_name("sentry-ruby").full_gem_path, "lib")
|
17
|
-
SENTRY_RAILS_PATH = File.join(Gem::Specification.find_by_name("sentry-rails").full_gem_path, "lib")
|
18
|
-
|
19
17
|
class_attribute :backtrace_cleaner, default: (ActiveSupport::BacktraceCleaner.new.tap do |cleaner|
|
20
|
-
cleaner.add_silencer { |line| line.include?(
|
18
|
+
cleaner.add_silencer { |line| line.include?("sentry-ruby/lib") || line.include?("sentry-rails/lib") }
|
21
19
|
end)
|
22
20
|
end
|
23
21
|
|
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.18.
|
4
|
+
version: 5.18.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-07-02 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.18.
|
33
|
+
version: 5.18.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.18.
|
40
|
+
version: 5.18.1
|
41
41
|
description: A gem that provides Rails integration for the Sentry error logger
|
42
42
|
email: accounts@sentry.io
|
43
43
|
executables: []
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
rubygems_version: 3.
|
109
|
+
rubygems_version: 3.5.11
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: A gem that provides Rails integration for the Sentry error logger
|