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 +4 -4
- data/CHANGELOG.markdown +6 -0
- data/lib/scout_apm/config.rb +3 -0
- data/lib/scout_apm/instruments/http_client.rb +4 -1
- data/lib/scout_apm/instruments/net_http.rb +3 -1
- data/lib/scout_apm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3550603f596bb60e23a74f36dccd159a6b48caa
|
|
4
|
+
data.tar.gz: 08d21a32a9882ddd33d5b622d185223a5dcb02dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d10e144e4332e959eb5296d6f5420cb3c85a96e0e3520612bf8a8d42e7268939f79c0922ead5b0540917fe04bcde4b982ec3e87e2f59aeb9f1f8cdf3d1faf82
|
|
7
|
+
data.tar.gz: baaebcba71a090815eaa1780d3fbff465be893252c94ac88e2f765780f5dca6b9115bf6e5c92b3677d7fb8b0b681d0ce52c12dad9ba8c8f761a5805ccb093479
|
data/CHANGELOG.markdown
CHANGED
|
@@ -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
|
|
data/lib/scout_apm/config.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
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: 2.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-
|
|
12
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: minitest
|