scout_rails 0.0.5.pre → 0.0.5

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.
@@ -1,7 +1,8 @@
1
- # 0.0.5.pre
1
+ # 0.0.5
2
2
 
3
3
  * Support for custom categories
4
4
  * Not raising an exception w/an unbalanced stack
5
+ * Only allows controllers as the entry point for a transaction
5
6
 
6
7
  # 0.0.4
7
8
 
@@ -67,7 +67,8 @@ 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
+ # Uses controllers as the entry point for a transaction. Otherwise, stats are ignored.
71
+ if stack_empty and meta.metric_name.match(/\AController\//)
71
72
  aggs=aggregate_calls(transaction_hash.dup,meta)
72
73
  store_sample(options[:uri],transaction_hash.dup.merge(aggs),meta,stat)
73
74
  # deep duplicate
@@ -1,3 +1,3 @@
1
1
  module ScoutRails
2
- VERSION = "0.0.5.pre"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.pre
5
- prerelease: 6
4
+ version: 0.0.5
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Derek Haynes
@@ -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-25 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.
@@ -61,9 +61,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
- - - ! '>'
64
+ - - ! '>='
65
65
  - !ruby/object:Gem::Version
66
- version: 1.3.1
66
+ version: '0'
67
67
  requirements: []
68
68
  rubyforge_project: scout_rails
69
69
  rubygems_version: 1.8.10