scout_apm 2.6.3 → 2.6.4

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
  SHA256:
3
- metadata.gz: 6a0344ecd846204d2b4057246c9719ebf4453a1c240847e54357a75cecda39b6
4
- data.tar.gz: 55b8b4c379fee7e5f8275bde73f27fa7d9e1e16b560c70207e51e4225e45184c
3
+ metadata.gz: 96f6a10ca19691ef0b5feb036811700759fbd6164a0811efbe52b1fcaa97b6c9
4
+ data.tar.gz: c2c39bcb738f22115d0a0f69f40340a5096f523e542c844fe007b15f42a324d1
5
5
  SHA512:
6
- metadata.gz: 45cd0a3dc5b6632a980a38324e6c933d2552eb33aa32e1e9e9da74e5a6b848b5bdb694c27f017502c6a437dd6576486d8186ccbea8ae3c5563b8778bac158870
7
- data.tar.gz: d20753a142c71ef03a47608bcae15acdb2aeec11e5f7f75c78ece78657ac828b077af15c152b4e1aac92eb81f98e6a7b211db1aa35349cd8746a37ae76089b25
6
+ metadata.gz: ea5173420001f92d54aae2a05b7ca71287ca08b3da08b27769895b9ddc0aca791dfb226c93ed84464728cc02a7c6defc486b3b1d606e58f64323d7c523dfdbfb
7
+ data.tar.gz: 91b7ace32216ea11bffa119d782b3f43dba518fc1adf07bae866e20c8cf83e25e055ded16fd57ee2d6dc7d1c2f4b92c88849ab207adf316435d520b016bf7e3a
@@ -1,3 +1,7 @@
1
+ # 2.6.4
2
+
3
+ * Add defensive check against a nil @address in Net/HTTP instruments (#306)
4
+
1
5
  # 2.6.3
2
6
 
3
7
  * Standardize Metadata with other language agents (#302)
@@ -25,7 +25,7 @@ module ScoutApm
25
25
  ::Net::HTTP.class_eval do
26
26
  include ScoutApm::Tracer
27
27
 
28
- def request_with_scout_instruments(*args,&block)
28
+ def request_with_scout_instruments(*args, &block)
29
29
  self.class.instrument("HTTP", "request", :ignore_children => true, :desc => request_scout_description(args.first)) do
30
30
  request_without_scout_instruments(*args, &block)
31
31
  end
@@ -35,8 +35,15 @@ module ScoutApm
35
35
  path = req.path
36
36
  path = path.path if path.respond_to?(:path)
37
37
 
38
+ # Protect against a nil address value
39
+ if @address.nil?
40
+ return "No Address Found"
41
+ end
42
+
38
43
  max_length = ScoutApm::Agent.instance.context.config.value('instrument_http_url_length')
39
44
  (@address + path.split('?').first)[0..(max_length - 1)]
45
+ rescue
46
+ ""
40
47
  end
41
48
 
42
49
  alias request_without_scout_instruments request
@@ -1,3 +1,3 @@
1
1
  module ScoutApm
2
- VERSION = "2.6.3"
2
+ VERSION = "2.6.4"
3
3
  end
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.6.3
4
+ version: 2.6.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: 2019-10-31 00:00:00.000000000 Z
12
+ date: 2019-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest