scout_rails 0.0.5.debug1.pre → 0.0.5.debug2.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/scout_rails/store.rb +6 -1
- data/lib/scout_rails/version.rb +1 -1
- metadata +2 -2
data/lib/scout_rails/store.rb
CHANGED
@@ -67,7 +67,10 @@ class ScoutRails::Store
|
|
67
67
|
stat.update!(duration,duration-item.children_time)
|
68
68
|
transaction_hash[meta] = stat
|
69
69
|
|
70
|
-
|
70
|
+
# If this is a controller action, merge data into the metrics hash and store transaction data.
|
71
|
+
# It's possible that a metric could be instrumented before a controller action is - for now, we're
|
72
|
+
# ignoring those.
|
73
|
+
if stack_empty and meta.metric_name.match(/\AController\//)
|
71
74
|
ScoutRails::Agent.instance.logger.debug "Stop Recording: #{meta.metric_name}"
|
72
75
|
|
73
76
|
aggs=aggregate_calls(transaction_hash.dup,meta)
|
@@ -78,6 +81,8 @@ class ScoutRails::Store
|
|
78
81
|
duplicate[k.dup] = v.dup
|
79
82
|
end
|
80
83
|
merge_data(duplicate.merge({meta.dup => stat.dup})) # aggregrates + controller
|
84
|
+
|
85
|
+
ScoutRails::Agent.instance.logger.debug "Controller Metrics: #{metric_hash.keys.find_all { |meta| meta.metric_name.match(/\AController\//)}.size }"
|
81
86
|
end
|
82
87
|
end
|
83
88
|
|
data/lib/scout_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5.
|
4
|
+
version: 0.0.5.debug2.pre
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06-
|
13
|
+
date: 2012-06-22 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Monitors a Ruby on Rails application and reports detailed metrics on
|
16
16
|
performance to Scout, a hosted monitoring service.
|