raygun-apm-rails 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/lib/raygun/apm/rails/middleware.rb +12 -3
- 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: f48a149b559692c6a57fa6b207562fbb1f601f2e5680165902fbc1e6f5d6a247
|
4
|
+
data.tar.gz: 8d06e52aa1eed0a84316fa74e156cbfe7471d9a200585daad8734d2c4c268f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98eafd87b1d591426d08b1e4c3cc73ba1022cbc92509c5316e260e404274f9e792452a4544e51160c05e7a1c05acc4856f4f50830280b9db18f62027ec787234
|
7
|
+
data.tar.gz: f37a4deb0f9dad5c71704f4e74eca6b357314ee4099d8bc3f3e61e3de288b7e52d4a829cbb85e2688ed24571648ec3ddb79222c0584bbe250dd9983ac76a27ac
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
== 1.0.21 (March 19, 2020)
|
4
|
+
|
5
|
+
* Further improvements of emitting exceptions and other error status codes for apps with and without raygun4ruby installed
|
6
|
+
|
3
7
|
== 1.0.20 (March 18, 2020)
|
4
8
|
|
5
9
|
* Introduce support for detecting the presence of raygun4ruby and integrate better with the exception tracker
|
@@ -28,17 +28,26 @@ module Raygun
|
|
28
28
|
Ruby_APM_profiler_trace do
|
29
29
|
begin
|
30
30
|
res = @app.call(env)
|
31
|
+
if res && (status = res.first) >= 400 && status < 600
|
32
|
+
Ruby_APM_request_error do
|
33
|
+
message = Rack::Utils::HTTP_STATUS_CODES[status]
|
34
|
+
begin
|
35
|
+
raise "HTTP #{status} #{message}"
|
36
|
+
rescue => e
|
37
|
+
Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
|
38
|
+
end
|
39
|
+
exceptional_http_in_handler(env, status)
|
40
|
+
end
|
41
|
+
end
|
31
42
|
rescue => e
|
32
43
|
Ruby_APM_request_error do
|
44
|
+
raise e rescue nil
|
33
45
|
Raygun.track_exception(e, env) if Raygun::Apm::Rails.raygun4ruby?
|
34
46
|
exceptional_http_in_handler(env, 500)
|
35
47
|
end
|
36
48
|
exection = e
|
37
49
|
end
|
38
50
|
end
|
39
|
-
if res && (status = res.first) >= 400 && status < 600
|
40
|
-
Ruby_APM_request_error { exceptional_http_in_handler(env, status) }
|
41
|
-
end
|
42
51
|
# Can be nil if we had a fatal error
|
43
52
|
@tracer.end_trace if @tracer
|
44
53
|
raise exception if exception
|
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.21
|
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-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: raygun-apm
|