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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 274ea9a538eec6a7f3b33798485bb8a34e125d6b7656f6da6190b137d2a50667
4
- data.tar.gz: e3083172f595177fbcca74e9206bb241c17f703e532ffb7c16d18322b75218a8
3
+ metadata.gz: f48a149b559692c6a57fa6b207562fbb1f601f2e5680165902fbc1e6f5d6a247
4
+ data.tar.gz: 8d06e52aa1eed0a84316fa74e156cbfe7471d9a200585daad8734d2c4c268f4a
5
5
  SHA512:
6
- metadata.gz: 7ab24ef63ac928dc823e96181a1b1f5be51839f4b13646b07571686680eea2482dbedd0134e4959bcd4233d07ca8e6f80883308ba67922e11a2e77f3a9a9c9b5
7
- data.tar.gz: '0988caffa77325919b9fb2d3d31bbc90229ecf424bc52686980f3c5a6953d9e67f54407f02550acc8073e118296512a372ffb476e032bdc471cd02b0b3d17322'
6
+ metadata.gz: 98eafd87b1d591426d08b1e4c3cc73ba1022cbc92509c5316e260e404274f9e792452a4544e51160c05e7a1c05acc4856f4f50830280b9db18f62027ec787234
7
+ data.tar.gz: f37a4deb0f9dad5c71704f4e74eca6b357314ee4099d8bc3f3e61e3de288b7e52d4a829cbb85e2688ed24571648ec3ddb79222c0584bbe250dd9983ac76a27ac
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.20"
4
+ VERSION = "1.0.21"
5
5
  end
6
6
  end
7
7
  end
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.20
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-18 00:00:00.000000000 Z
12
+ date: 2020-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm