scout_apm 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238644dc9ea19370a84d3bb7c352faef442b555e
|
4
|
+
data.tar.gz: 7c43ada6596aed42f483084fab03c66a50f9732a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e882ef1bbf5ac0b908dc249c4ffdde6e7db167a5d909d89c70ca974fdf9deb63ceadf987c33418de5a426782621c0b67d2589f97872642c52a45a185e15ac7cf
|
7
|
+
data.tar.gz: b40f7a9b49bc263d209d13e27fb6fe448861e166bf17e3bae8a95253ddd4acf07900f30af97171824218dc47b2941e87578bded7db69752aa878c90ad3347003
|
data/CHANGELOG.markdown
CHANGED
data/lib/scout_apm/config.rb
CHANGED
@@ -13,6 +13,7 @@ require 'scout_apm/environment'
|
|
13
13
|
# log_level - DEBUG / INFO / WARN as usual
|
14
14
|
# monitor - true or false. False prevents any instrumentation from starting
|
15
15
|
# name - override the name reported to APM. This is the name that shows in the Web UI
|
16
|
+
# uri_reporting - 'path' or 'full_path' default is 'full_path', which reports URL params as well as the path.
|
16
17
|
#
|
17
18
|
# Any of these config settings can be set with an environment variable prefixed
|
18
19
|
# by SCOUT_ and uppercasing the key: SCOUT_LOG_LEVEL for instance.
|
@@ -22,7 +23,8 @@ module ScoutApm
|
|
22
23
|
DEFAULTS = {
|
23
24
|
'host' => 'https://checkin.scoutapp.com',
|
24
25
|
'log_level' => 'info',
|
25
|
-
'stackprof_interval' => 20000 # microseconds, 1000 = 1 millisecond, so 20k == 20 milliseconds
|
26
|
+
'stackprof_interval' => 20000, # microseconds, 1000 = 1 millisecond, so 20k == 20 milliseconds
|
27
|
+
'uri_reporting' => 'full_path'
|
26
28
|
}.freeze
|
27
29
|
|
28
30
|
def initialize(config_path = nil)
|
@@ -58,7 +58,8 @@ module ScoutApm
|
|
58
58
|
# specific controller actions.
|
59
59
|
def perform_action_with_scout_instruments(*args, &block)
|
60
60
|
req = ScoutApm::RequestManager.lookup
|
61
|
-
|
61
|
+
path = ScoutApm::Agent.instance.config.value("uri_reporting") == 'path' ? request.path : request.fullpath
|
62
|
+
req.annotate_request(:uri => path)
|
62
63
|
req.context.add_user(:ip => request.remote_ip)
|
63
64
|
req.set_headers(request.headers)
|
64
65
|
req.start_layer( ScoutApm::Layer.new("Controller", "#{controller_path}/#{action_name}") )
|
@@ -59,7 +59,8 @@ module ScoutApm
|
|
59
59
|
module ActionControllerRails3Rails4Instruments
|
60
60
|
def process_action(*args)
|
61
61
|
req = ScoutApm::RequestManager.lookup
|
62
|
-
|
62
|
+
path = ScoutApm::Agent.instance.config.value("uri_reporting") == 'path' ? request.path : request.fullpath
|
63
|
+
req.annotate_request(:uri => path)
|
63
64
|
req.context.add_user(:ip => request.remote_ip)
|
64
65
|
req.set_headers(request.headers)
|
65
66
|
|
data/lib/scout_apm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout_apm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Haynes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project: scout_apm
|
179
|
-
rubygems_version: 2.
|
179
|
+
rubygems_version: 2.2.2
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Ruby application performance monitoring
|
@@ -192,4 +192,3 @@ test_files:
|
|
192
192
|
- test/unit/slow_transaction_set_test.rb
|
193
193
|
- test/unit/sql_sanitizer_test.rb
|
194
194
|
- test/unit/utils/active_record_metric_name_test.rb
|
195
|
-
has_rdoc:
|