scout_rails 1.0.1.pre2 → 1.0.1.pre3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  * Unicorn support (requires "preload_app true" in unicorn config file)
4
4
  * Fix for Thin detection - ensure it's actually running
5
+ * Fixing name conflict btw Tracer#store and ActiveRecord::Store
5
6
 
6
7
  # 1.0.0
7
8
 
@@ -12,10 +12,6 @@ module ScoutRails::Tracer
12
12
  end
13
13
 
14
14
  module ClassMethods
15
- # An easier reference to the agent's associated store.
16
- def store
17
- ScoutRails::Agent.instance.store
18
- end
19
15
 
20
16
  # Use to trace a method call, possibly reporting slow transaction traces to Scout.
21
17
  def trace(metric_name, options = {}, &block)
@@ -34,12 +30,12 @@ module ScoutRails::Tracer
34
30
  if options.delete(:scope)
35
31
  Thread::current[:scout_sub_scope] = metric_name
36
32
  end
37
- stack_item = store.record(metric_name)
33
+ stack_item = ScoutRails::Agent.instance.store.record(metric_name)
38
34
  begin
39
35
  yield
40
36
  ensure
41
37
  Thread::current[:scout_sub_scope] = nil if Thread::current[:scout_sub_scope] == metric_name
42
- store.stop_recording(stack_item,options)
38
+ ScoutRails::Agent.instance.store.stop_recording(stack_item,options)
43
39
  end
44
40
  end
45
41
 
@@ -1,3 +1,3 @@
1
1
  module ScoutRails
2
- VERSION = "1.0.1.pre2"
2
+ VERSION = "1.0.1.pre3"
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: 1.0.1.pre2
4
+ version: 1.0.1.pre3
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-07-18 00:00:00.000000000 Z
13
+ date: 2012-07-19 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.