raygun-apm-rails 1.0.31 → 1.0.36
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/CHANGELOG.rdoc +20 -0
- data/Gemfile.lock +3 -3
- data/lib/raygun/apm/rails.rb +36 -21
- data/lib/raygun/apm/rails/middleware.rb +8 -3
- data/lib/raygun/apm/rails/railtie.rb +1 -1
- data/lib/raygun/apm/rails/version.rb +1 -1
- data/raygun-apm-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: 55cbb46e1a2e25354253adffcef702b795465912c99020f6a56b100a175e408a
|
4
|
+
data.tar.gz: fde9349def8d26537d05db3f4ac56a12ffeeffd0480ba39765caa273a4d13a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 529a9e6e1925c7628be8decce46943fa436c29d608902bf598e6f39b4b5674fbd4de19a308b03001c31b6d26b5d0e024a681ca32f13ed8a8686103b78999d737
|
7
|
+
data.tar.gz: b1985a74584f8e21720b8ee87b4a29009737882e0d2d58c3b804fae19f2cf3d09a88e4c6ff8bcf7f088f0b0572f0abe3295f441b486aaa639fbe793bce12c817
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
== 1.0.36 (June 27, 2020)
|
4
|
+
|
5
|
+
* Some blacklist cleanups and ambiguity removal
|
6
|
+
|
7
|
+
== 1.0.35 (June 27, 2020)
|
8
|
+
|
9
|
+
* Whitelist key ActiveStorage APIs
|
10
|
+
|
11
|
+
== 1.0.34 (June 17, 2020)
|
12
|
+
|
13
|
+
* Align with rubyesque blacklist syntax support from profiler version 1.0.44
|
14
|
+
|
15
|
+
== 1.0.33 (June 7, 2020)
|
16
|
+
|
17
|
+
* Integrate exception correlation with rayrun4ruby
|
18
|
+
|
19
|
+
== 1.0.32 (June 6, 2020)
|
20
|
+
|
21
|
+
* Move raygun4ruby whitelisting and blacklisting out to profiler core
|
22
|
+
|
3
23
|
== 1.0.31 (May 17, 2020)
|
4
24
|
|
5
25
|
* Remove the Tracer#process_started callback (set on begin transaction command now)
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
raygun-apm-rails (1.0.
|
5
|
-
raygun-apm (~> 1.0.
|
4
|
+
raygun-apm-rails (1.0.36)
|
5
|
+
raygun-apm (~> 1.0.44)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
minitest (5.13.0)
|
11
11
|
rake (10.5.0)
|
12
|
-
raygun-apm (1.0.
|
12
|
+
raygun-apm (1.0.45-x86-linux)
|
13
13
|
|
14
14
|
PLATFORMS
|
15
15
|
ruby
|
data/lib/raygun/apm/rails.rb
CHANGED
@@ -9,17 +9,23 @@ module Raygun
|
|
9
9
|
BLACKLIST = %w{
|
10
10
|
#<ActiveRecord
|
11
11
|
#<ActiveModel
|
12
|
-
Benchmark
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
Benchmark#
|
13
|
+
Benchmark::
|
14
|
+
BigDecimal#
|
15
|
+
Benchmark::
|
16
|
+
Concurrent#
|
17
|
+
Concurrent::
|
18
|
+
Date#
|
19
|
+
Date::
|
20
|
+
DateAndTime#
|
21
|
+
DateAndTime::
|
22
|
+
DateTime#
|
23
|
+
DateTime::
|
24
|
+
Delegator#
|
25
|
+
Digest#
|
26
|
+
Digest::
|
27
|
+
SecureRandom#
|
28
|
+
SecureRandom::
|
23
29
|
AbstractController
|
24
30
|
ActionCable
|
25
31
|
ActionController
|
@@ -34,8 +40,10 @@ module Raygun
|
|
34
40
|
ActiveStorage
|
35
41
|
ActiveSupport
|
36
42
|
Arel
|
37
|
-
Mail
|
38
|
-
|
43
|
+
Mail#
|
44
|
+
Mail::
|
45
|
+
Mime#
|
46
|
+
Mime::
|
39
47
|
Rails
|
40
48
|
Rack
|
41
49
|
I18n
|
@@ -77,12 +85,8 @@ module Raygun
|
|
77
85
|
Grape
|
78
86
|
Mustermann
|
79
87
|
Enumeration
|
80
|
-
Raygun::
|
81
|
-
Raygun::
|
82
|
-
Raygun::config
|
83
|
-
+Raygun::Apm::Rails::Middleware::Ruby_APM_profiler_trace
|
84
|
-
+Raygun::Apm::Rails::Middleware::Ruby_APM_request_error
|
85
|
-
+Raygun::track_exception
|
88
|
+
+Raygun::Apm::Rails::Middleware#Ruby_APM_profiler_trace
|
89
|
+
+Raygun::Apm::Rails::Middleware#Ruby_APM_request_error
|
86
90
|
WebpackHelper
|
87
91
|
Ripper
|
88
92
|
Webpack
|
@@ -109,10 +113,21 @@ module Raygun
|
|
109
113
|
autosave_associated_records_for_
|
110
114
|
validate_associated_records_for_
|
111
115
|
will_save_change_to_
|
116
|
+
+ActiveStorage::Blob#upload
|
117
|
+
+ActiveStorage::Blob#download
|
118
|
+
+ActiveStorage::DiskController#show
|
119
|
+
+ActiveStorage::DiskController#update
|
120
|
+
+ActiveStorage::DirectUploadsController#create
|
121
|
+
+ActiveStorage::BlobsController#show
|
122
|
+
+ActiveStorage::RepresentationsController#show
|
112
123
|
}
|
113
124
|
|
114
|
-
def self.raygun4ruby?
|
115
|
-
|
125
|
+
def self.raygun4ruby?(configured = true)
|
126
|
+
if configured
|
127
|
+
defined?(Raygun) && Raygun.respond_to?(:configured?) && Raygun.configured?
|
128
|
+
else
|
129
|
+
defined?(Raygun) && Raygun.respond_to?(:configured?)
|
130
|
+
end
|
116
131
|
end
|
117
132
|
end
|
118
133
|
end
|
@@ -34,15 +34,14 @@ module Raygun
|
|
34
34
|
begin
|
35
35
|
raise "HTTP #{status} #{message}"
|
36
36
|
rescue => e
|
37
|
-
|
37
|
+
crash_report_exception(e)
|
38
38
|
end
|
39
39
|
exceptional_http_in_handler(env, status) if @tracer
|
40
40
|
end
|
41
41
|
end
|
42
42
|
rescue => e
|
43
43
|
Ruby_APM_request_error do
|
44
|
-
|
45
|
-
Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
|
44
|
+
crash_report_exception(e)
|
46
45
|
exceptional_http_in_handler(env, 500) if @tracer
|
47
46
|
end
|
48
47
|
exception = e
|
@@ -181,6 +180,12 @@ module Raygun
|
|
181
180
|
yield
|
182
181
|
end
|
183
182
|
|
183
|
+
def crash_report_exception(exception)
|
184
|
+
if Raygun::Apm::Rails.raygun4ruby?
|
185
|
+
Raygun.track_exception(exception, correlation_id: exception.instance_variable_get(:@__raygun_correlation_id))
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
184
189
|
def self.finalize(tracer)
|
185
190
|
proc {tracer.process_ended}
|
186
191
|
end
|
@@ -6,7 +6,7 @@ module Raygun
|
|
6
6
|
require "raygun/apm"
|
7
7
|
require "raygun/apm/rails/middleware"
|
8
8
|
Raygun::Apm::Blacklist.extend_with Raygun::Apm::Rails::BLACKLIST
|
9
|
-
if Raygun::Apm::Rails.raygun4ruby?
|
9
|
+
if Raygun::Apm::Rails.raygun4ruby?(false)
|
10
10
|
# Remove the exception notifier because we handle it in the APM middleware now instead
|
11
11
|
app.middleware.delete Raygun::Middleware::RackExceptionInterceptor
|
12
12
|
end
|
data/raygun-apm-rails.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency "raygun-apm", "~> 1.0.
|
23
|
+
spec.add_dependency "raygun-apm", "~> 1.0.44"
|
24
24
|
spec.add_development_dependency "bundler", "~> 2.1.4"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
26
|
spec.add_development_dependency "minitest", "~> 5.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raygun-apm-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raygun
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: raygun-apm
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.0.
|
20
|
+
version: 1.0.44
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.0.
|
27
|
+
version: 1.0.44
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|