scout_rails 1.1.4.pre → 1.1.5.pre
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/lib/scout_rails.rb +3 -0
- data/lib/scout_rails/agent/reporting.rb +2 -0
- data/lib/scout_rails/version.rb +1 -1
- data/scout_rails.gemspec +1 -0
- metadata +18 -2
data/lib/scout_rails.rb
CHANGED
@@ -6,6 +6,9 @@ require 'net/http'
|
|
6
6
|
require 'logger'
|
7
7
|
require 'yaml'
|
8
8
|
require 'cgi'
|
9
|
+
# statsd is temporary - for performance auditing
|
10
|
+
require 'statsd-ruby'
|
11
|
+
STATSD = Statsd.new 'localhost', 8125
|
9
12
|
require File.expand_path('../scout_rails/version.rb', __FILE__)
|
10
13
|
require File.expand_path('../scout_rails/agent.rb', __FILE__)
|
11
14
|
require File.expand_path('../scout_rails/agent/logging.rb', __FILE__)
|
@@ -20,6 +20,8 @@ module ScoutRails
|
|
20
20
|
end
|
21
21
|
sample, samples = store.fetch_and_reset_samples!
|
22
22
|
payload = Marshal.dump(:metrics => metrics, :sample => sample, :samples => samples)
|
23
|
+
STATSD.timing('scout_rails.payload_kb',payload.size/1024)
|
24
|
+
STATSD.timing('scout_rails.samples',samples.size)
|
23
25
|
logger.debug "#{config.settings['name']} Delivering payload [#{payload.size/1024} KB] for #{controller_count} requests and #{samples.size} slow transaction samples of durations: #{samples.map(&:total_call_time).join(',')}."
|
24
26
|
response = post( checkin_uri,
|
25
27
|
payload,
|
data/lib/scout_rails/version.rb
CHANGED
data/scout_rails.gemspec
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.1.
|
4
|
+
version: 1.1.5.pre
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,23 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
date: 2015-06-12 00:00:00.000000000 Z
|
14
|
-
dependencies:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: statsd-ruby
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
15
31
|
description: Monitors a Ruby on Rails application and reports detailed metrics on
|
16
32
|
performance to Scout, a hosted monitoring service.
|
17
33
|
email:
|