scout_rails 1.0.1.pre2 → 1.0.1.pre3
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/CHANGELOG.markdown +1 -0
- data/lib/scout_rails/tracer.rb +2 -6
- data/lib/scout_rails/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.markdown
CHANGED
data/lib/scout_rails/tracer.rb
CHANGED
@@ -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
|
|
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: 1.0.1.
|
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-
|
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.
|