raygun-apm-rails 1.0.19 → 1.0.20
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 +4 -0
- data/lib/raygun/apm/rails.rb +4 -0
- data/lib/raygun/apm/rails/middleware.rb +6 -1
- data/lib/raygun/apm/rails/railtie.rb +4 -0
- data/lib/raygun/apm/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 274ea9a538eec6a7f3b33798485bb8a34e125d6b7656f6da6190b137d2a50667
|
4
|
+
data.tar.gz: e3083172f595177fbcca74e9206bb241c17f703e532ffb7c16d18322b75218a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ab24ef63ac928dc823e96181a1b1f5be51839f4b13646b07571686680eea2482dbedd0134e4959bcd4233d07ca8e6f80883308ba67922e11a2e77f3a9a9c9b5
|
7
|
+
data.tar.gz: '0988caffa77325919b9fb2d3d31bbc90229ecf424bc52686980f3c5a6953d9e67f54407f02550acc8073e118296512a372ffb476e032bdc471cd02b0b3d17322'
|
data/CHANGELOG.rdoc
CHANGED
data/lib/raygun/apm/rails.rb
CHANGED
@@ -29,7 +29,11 @@ module Raygun
|
|
29
29
|
begin
|
30
30
|
res = @app.call(env)
|
31
31
|
rescue => e
|
32
|
-
Ruby_APM_request_error
|
32
|
+
Ruby_APM_request_error do
|
33
|
+
Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
|
34
|
+
exceptional_http_in_handler(env, 500)
|
35
|
+
end
|
36
|
+
exection = e
|
33
37
|
end
|
34
38
|
end
|
35
39
|
if res && (status = res.first) >= 400 && status < 600
|
@@ -37,6 +41,7 @@ module Raygun
|
|
37
41
|
end
|
38
42
|
# Can be nil if we had a fatal error
|
39
43
|
@tracer.end_trace if @tracer
|
44
|
+
raise exception if exception
|
40
45
|
res
|
41
46
|
rescue Raygun::Apm::FatalError => e
|
42
47
|
raygun_shutdown_handler(e)
|
@@ -6,6 +6,10 @@ 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?
|
10
|
+
# Remove the exception notifier because we handle it in the APM middleware now instead
|
11
|
+
app.middleware.delete Raygun::Middleware::RackExceptionInterceptor
|
12
|
+
end
|
9
13
|
app.middleware.use Raygun::Apm::Rails::Middleware
|
10
14
|
# Explictly enable instrumenting HTTP until a good control API is figured out
|
11
15
|
require "raygun/apm/hooks/net_http"
|
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.20
|
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-03-
|
12
|
+
date: 2020-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: raygun-apm
|