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 +4 -4
- data/lib/raygun/apm/rails/middleware.rb +4 -4
- 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: 16a1a25a7bfe81affd3317f125fa01dee33ae673d55ee9cdbcec75df4bc56054
|
4
|
+
data.tar.gz: 12d2dec9e1d031a6ea89867cced58aef2575355c382554939bd43d086b879228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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] =
|
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)
|
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.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-
|
12
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: raygun-apm
|