scout_apm 2.3.3 → 2.3.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b48d3a3bd3b4f29128855e9cecbe5e98869704f2
4
- data.tar.gz: 5a1e47f348ad25195f04d7250fc232fae4a082b6
3
+ metadata.gz: d3550603f596bb60e23a74f36dccd159a6b48caa
4
+ data.tar.gz: 08d21a32a9882ddd33d5b622d185223a5dcb02dd
5
5
  SHA512:
6
- metadata.gz: fdee3999614a9fbcc7c45087f55cd76176708ec3b162346143524cc5edd4feb44cfb692cd5c04e3f6d8d1f7b1b186083585d5dc833399a7812c4eeb4083b097b
7
- data.tar.gz: b3cbeaf5c677468b2205dddc87b35c5e7a949a81c58874493033922624dc7a7d218ed8317c221b0b8dbd39258d03d21a2589252dd3737060d04998e32995d167
6
+ metadata.gz: 5d10e144e4332e959eb5296d6f5420cb3c85a96e0e3520612bf8a8d42e7268939f79c0922ead5b0540917fe04bcde4b982ec3e87e2f59aeb9f1f8cdf3d1faf82
7
+ data.tar.gz: baaebcba71a090815eaa1780d3fbff465be893252c94ac88e2f765780f5dca6b9115bf6e5c92b3677d7fb8b0b681d0ce52c12dad9ba8c8f761a5805ccb093479
@@ -1,7 +1,13 @@
1
+ # 2.3.4
2
+
3
+ * Capture 300 characters of a url from net/http and httpclient instruments (up from 100).
4
+
1
5
  # 2.3.3
2
6
 
3
7
  * Capture ActiveRecord calls that generate more complex queries
4
8
  * More aggressively determine names of complex queries (to determine "User/find", "Account/create" and similar)
9
+ * Increases the maximum size of SQL queries that are sanitized to 16KB from 4 KB
10
+ * Captures all SQL individual queries generated in a given AR call (previous only a single query was captured)
5
11
 
6
12
  # 2.3.2
7
13
 
@@ -63,6 +63,7 @@ module ScoutApm
63
63
  'report_format',
64
64
  'scm_subdirectory',
65
65
  'uri_reporting',
66
+ 'instrument_http_url_length',
66
67
  ]
67
68
 
68
69
  ################################################################################
@@ -150,6 +151,7 @@ module ScoutApm
150
151
  "monitor" => BooleanCoercion.new,
151
152
  'database_metric_limit' => IntegerCoercion.new,
152
153
  'database_metric_report_limit' => IntegerCoercion.new,
154
+ 'instrument_http_url_length' => IntegerCoercion.new,
153
155
  }
154
156
 
155
157
 
@@ -239,6 +241,7 @@ module ScoutApm
239
241
  'remote_agent_port' => 7721, # picked at random
240
242
  'database_metric_limit' => 5000, # The hard limit on db metrics
241
243
  'database_metric_report_limit' => 1000,
244
+ 'instrument_http_url_length' => 300,
242
245
  }.freeze
243
246
 
244
247
  def value(key)
@@ -22,9 +22,12 @@ module ScoutApm
22
22
  include ScoutApm::Tracer
23
23
 
24
24
  def request_with_scout_instruments(*args, &block)
25
+
25
26
  method = args[0].to_s
26
27
  url = args[1]
27
- url = url && url.to_s[0..99]
28
+
29
+ max_length = ScoutApm::Agent.instance.config.value('instrument_http_url_length')
30
+ url = url && url.to_s[0..(max_length - 1)]
28
31
 
29
32
  self.class.instrument("HTTP", method, :desc => url) do
30
33
  request_without_scout_instruments(*args, &block)
@@ -30,7 +30,9 @@ module ScoutApm
30
30
  def request_scout_description(req)
31
31
  path = req.path
32
32
  path = path.path if path.respond_to?(:path)
33
- (@address + path.split('?').first)[0..99]
33
+
34
+ max_length = ScoutApm::Agent.instance.config.value('instrument_http_url_length')
35
+ (@address + path.split('?').first)[0..(max_length - 1)]
34
36
  end
35
37
 
36
38
  alias request_without_scout_instruments request
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
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: 2.3.3
4
+ version: 2.3.4
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: 2017-12-21 00:00:00.000000000 Z
12
+ date: 2017-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest