logjam_agent 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -61,9 +61,10 @@ module LogjamAgent
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def after_dispatch(env, result, run_time_ms)
|
64
|
-
status = result ? result.first : 500
|
65
|
-
|
66
|
-
|
64
|
+
status = result ? result.first.to_i : 500
|
65
|
+
if completed_info = Thread.current.thread_variable_get(:time_bandits_completed_info)
|
66
|
+
_, additions, view_time, _ = completed_info
|
67
|
+
end
|
67
68
|
request_info = {:total_time => run_time_ms, :code => status, :view_time => view_time || 0.0}
|
68
69
|
|
69
70
|
if (allowed_time_ms = env['HTTP_X_LOGJAM_CALLER_TIMEOUT'].to_i) > 0 && (run_time_ms > allowed_time_ms)
|
data/lib/logjam_agent/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logjam_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 1
|
10
|
+
version: 0.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stefan Kaes
|