scout_rails 0.0.5.debug1.pre → 0.0.5.debug2.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- if stack_empty
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
 
@@ -1,3 +1,3 @@
1
1
  module ScoutRails
2
- VERSION = "0.0.5.debug1.pre"
2
+ VERSION = "0.0.5.debug2.pre"
3
3
  end
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.debug1.pre
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-21 00:00:00.000000000 Z
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.