lib/scout_rails/store.rb in scout_rails-0.0.5.debug2.pre vs lib/scout_rails/store.rb in scout_rails-0.0.5.pre

- old
+ new

@@ -65,25 +65,18 @@ stat = transaction_hash[meta] || ScoutRails::MetricStats.new(!stack_empty) stat.update!(duration,duration-item.children_time) transaction_hash[meta] = stat - # If this is a controller action, merge data into the metrics hash and store transaction data. - # It's possible that a metric could be instrumented before a controller action is - for now, we're - # ignoring those. - if stack_empty and meta.metric_name.match(/\AController\//) - ScoutRails::Agent.instance.logger.debug "Stop Recording: #{meta.metric_name}" - + if stack_empty aggs=aggregate_calls(transaction_hash.dup,meta) store_sample(options[:uri],transaction_hash.dup.merge(aggs),meta,stat) # deep duplicate duplicate = aggs.dup duplicate.each_pair do |k,v| duplicate[k.dup] = v.dup end merge_data(duplicate.merge({meta.dup => stat.dup})) # aggregrates + controller - - ScoutRails::Agent.instance.logger.debug "Controller Metrics: #{metric_hash.keys.find_all { |meta| meta.metric_name.match(/\AController\//)}.size }" end end # Returns the top-level category names used in the +metrics+ hash. def categories(metrics) \ No newline at end of file