scout_apm 2.4.18 → 2.4.19

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: ad3c97e9c1dd1cad2376178ad19f534cf41e53d7
4
- data.tar.gz: 8af7268cc654088d6bd1440c693e990e4d3d2c45
3
+ metadata.gz: 5d38cfea3836f29b9e730a02bf557962026bb9ac
4
+ data.tar.gz: 9e27ad539198445863b7bd617852d0ca4a6550a1
5
5
  SHA512:
6
- metadata.gz: 620703274624cc21f1e4712b425a68abfde46fe80172e8e457f8b57ec95d6c53980dc9d1ad71b69defb610d43f6be4ad60652d30e08f15d9c1cd7761c60e4e93
7
- data.tar.gz: 11aeff7c54b15e754c2ed425233a552a2065559b3f9d6c0402e7207e54db4cdfbe47aad9d32f8465c5cf378d5e45f543a2376591a22844b26869d607218694b9
6
+ metadata.gz: 7f659866301061871d82cf314df34b735a07d0cfad4e58d2a9cced65dac466b32e9ce8079b8f7d254be4a68192eaf1f4ca830147997417be3d6768924ec94a5d
7
+ data.tar.gz: 738cecce8b1d3e32e6043244c9c2573dda6813c6fc106402e9d83dd00e19807c46fa085f596b6bbc2d5fbb7090e4acdd525bb0a6f69766474ea276fc9000c959
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.4.19
2
+
3
+ * Fix disabled_instruments (#220)
4
+
1
5
  # 2.4.18
2
6
 
3
7
  * Add Shoryuken Support (#215)
@@ -41,13 +41,19 @@ module ScoutApm
41
41
  logger.warn $!.backtrace
42
42
  end
43
43
 
44
+ # Allows users to skip individual instruments via the config file
45
+ def skip_instrument?(instrument_klass)
46
+ instrument_short_name = instrument_klass.name.split("::").last
47
+ (config.value("disabled_instruments") || []).include?(instrument_short_name)
48
+ end
49
+
44
50
  private
45
51
 
46
52
  def install_instrument(instrument_klass)
47
53
  return if already_installed?(instrument_klass)
48
54
 
49
55
  if skip_instrument?(instrument_klass)
50
- logger.info "Skipping Disabled Instrument: #{instrument_short_name} - To re-enable, change `disabled_instruments` key in scout_apm.yml"
56
+ logger.info "Skipping Disabled Instrument: #{instrument_klass} - To re-enable, change `disabled_instruments` key in scout_apm.yml"
51
57
  return
52
58
  end
53
59
 
@@ -56,12 +62,6 @@ module ScoutApm
56
62
  instance.install
57
63
  end
58
64
 
59
- # Allows users to skip individual instruments via the config file
60
- def skip_instrument?(instrument_klass)
61
- instrument_short_name = instrument_klass.name.split("::").last
62
- (config.value("disabled_instruments") || []).include?(instrument_short_name)
63
- end
64
-
65
65
  def already_installed?(instrument_klass)
66
66
  @installed_instruments.any? do |already_installed_instrument|
67
67
  instrument_klass === already_installed_instrument
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.4.18"
2
+ VERSION = "2.4.19"
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.4.18
4
+ version: 2.4.19
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: 2018-09-06 00:00:00.000000000 Z
12
+ date: 2018-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
392
392
  version: '0'
393
393
  requirements: []
394
394
  rubyforge_project: scout_apm
395
- rubygems_version: 2.4.5.2
395
+ rubygems_version: 2.5.1
396
396
  signing_key:
397
397
  specification_version: 4
398
398
  summary: Ruby application performance monitoring