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: 99bbe7dc8f3e03137118c997250a4ddc41f9889c
4
- data.tar.gz: 3f7305a88ee28e41392d1c30fa182b879d94c95c
3
+ metadata.gz: 238644dc9ea19370a84d3bb7c352faef442b555e
4
+ data.tar.gz: 7c43ada6596aed42f483084fab03c66a50f9732a
5
5
  SHA512:
6
- metadata.gz: e4b44b8e106be2167bd52ed3c405e201c098a4b8b5027afab3dc6a0b51e04f259b8378faa94908d063f234ed3d7dc742dbd05b114614ff77b85c5de7cf35f52a
7
- data.tar.gz: bd9ce3b704d0c25ca02409981784420738d223018d55368d19c810c9b498d3caf708e4f66267445b3f30a56095090f5f1716fd497f27e18970e9190ae28c6b00
6
+ metadata.gz: e882ef1bbf5ac0b908dc249c4ffdde6e7db167a5d909d89c70ca974fdf9deb63ceadf987c33418de5a426782621c0b67d2589f97872642c52a45a185e15ac7cf
7
+ data.tar.gz: b40f7a9b49bc263d209d13e27fb6fe448861e166bf17e3bae8a95253ddd4acf07900f30af97171824218dc47b2941e87578bded7db69752aa878c90ad3347003
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.2.12
2
+
3
+ * add uri_reporting option to report bare path (as opposed to fullpath). Default is 'fullpath'; set to 'path' to avoid exposing URL parameters.
4
+
1
5
  # 1.2.11
2
6
 
3
7
  * Summarizing middleware instrumentation into a single metric for lower overhead.
@@ -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
- req.annotate_request(:uri => request.fullpath)
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
- req.annotate_request(:uri => request.fullpath)
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
 
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "1.2.11"
2
+ VERSION = "1.2.12"
3
3
  end
4
4
 
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.11
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-25 00:00:00.000000000 Z
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.4.6
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: