raygun-apm-rails 1.0.40 → 1.0.41

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: 1affdff67622a0393fa805c03dec12b95a7e96121b912bde7435cefb9d793bb7
4
- data.tar.gz: c610f30aeed993d831b154ec53a94f1bd0599990b149f97494bb83234dc332d5
3
+ metadata.gz: 16a1a25a7bfe81affd3317f125fa01dee33ae673d55ee9cdbcec75df4bc56054
4
+ data.tar.gz: 12d2dec9e1d031a6ea89867cced58aef2575355c382554939bd43d086b879228
5
5
  SHA512:
6
- metadata.gz: 4617790e7b5f6c70c282b63cd35ec6297b7f72e27029d6943ba7b1abb2547176d9ee6ab316d2eb2feb64aaff1a5192cb5515d56277353d5f9085482a1844815b
7
- data.tar.gz: db12daeb9f737e308a61a446e683f286b190d1fcea17547d74cbf0ebd1cda9f4a2ca935a86528cd71043a394586e9d062036a590dd56e51453d52e0075914db5
6
+ metadata.gz: 44f9ef85141688076f96430302787e4b9bce6b46dafbd75d953f230e3cbee5cff706de49805a8bfa8a76ece9dfacc53576737f10f5d2bd2172f03c7ea79b2776
7
+ data.tar.gz: 228fa823ee223d31914b50d5eccbed35ab3e004444684241e45d0c0ec25059149c8e70deee68777bf952b21dfd5930ec9601a5ab09173246c2136fd9f2292a08
@@ -30,7 +30,7 @@ module Raygun
30
30
  res = @app.call(env)
31
31
  rescue => e
32
32
  crash_report_exception(e)
33
- exceptional_http_in_handler(env, 500) if @tracer
33
+ exceptional_http_in_handler(env) if @tracer
34
34
  exception = e
35
35
  end
36
36
  end
@@ -96,7 +96,7 @@ module Raygun
96
96
  event[:pid] = Process.pid
97
97
  event[:url] = url
98
98
  event[:verb] = verb
99
- event[:status] = notification.payload[:status]
99
+ event[:status] = notification.payload[:status] || notification.payload[:headers]["action_controller.instance"].status
100
100
  # XXX constant milliseconds to microseconds
101
101
  event[:duration] = notification.duration * 1000
102
102
  event[:timestamp] = @tracer.now
@@ -108,13 +108,13 @@ module Raygun
108
108
  end
109
109
 
110
110
  # For middleware chain halts that does not trigger 'process_action.action_controller'
111
- def exceptional_http_in_handler(env, status)
111
+ def exceptional_http_in_handler(env)
112
112
  req = Rack::Request.new env
113
113
  event = http_in_event
114
114
  event[:pid] = Process.pid
115
115
  event[:url] = req.url
116
116
  event[:verb] = req.request_method
117
- event[:status] = status
117
+ event[:status] = 500
118
118
  event[:duration] = @tracer.now - @request_started
119
119
  event[:timestamp] = @tracer.now
120
120
  event[:tid] = @tracer.get_thread_id(Thread.current)
@@ -1,7 +1,7 @@
1
1
  module Raygun
2
2
  module Apm
3
3
  module Rails
4
- VERSION = "1.0.40"
4
+ VERSION = "1.0.41"
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.40
4
+ version: 1.0.41
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-09-11 00:00:00.000000000 Z
12
+ date: 2020-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: raygun-apm