scout_apm 0.1.13 → 0.1.14

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: 9959104d4317f9bb646443606363b67e7a33b4f9
4
- data.tar.gz: 866026e27f92c5607fbf8bcf15f6f921bcbc7786
3
+ metadata.gz: 9e39795a06f1fa8ed47e67d607b5aed80eb18283
4
+ data.tar.gz: 349093f6c3d8c93981c53c56e995a4a903986385
5
5
  SHA512:
6
- metadata.gz: 05a3afbfa039ec01f844940000910689753579311313d386f8487b5e69413bce155ee11103b92fd808b93a0ba801cbf58fbfe195b9ecff7e62c012c9d5251f51
7
- data.tar.gz: 7e6b9e8da470b075e6df0a7d4b9974939f11a1aaef323f3eff12f567561718627325ba6b64c76189557c8461f92f32ad966b8d85ce731fdea1ee3b4b934c98e7
6
+ metadata.gz: 6d4afbfd3cba70feff6444f636056970963433577cc096ff41a9ece6bda3dd7c455cbebd8be7146d31f8913893a9f6d11292ff4bfafbe9a980e961b7f1f4ace9
7
+ data.tar.gz: a2e27c9726c7f185d45639a599ed7bf82f4b67104f0e48013aeadb15f9f4cd12d021d5b4baf3a6c2c5326960d55a54f7edf8b124900e9f8eb9fe3cd72c4570b3
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.1.14
2
+
3
+ * Add new `data_file` option to configuration, to control the location of the
4
+ temporary data file. Still defaults to log/scout_apm.db. The file location
5
+ must be readable and writeable by the owner of the Ruby process
6
+
1
7
  # 0.1.13
2
8
 
3
9
  * Fix support for ActiveRecord and ActionController instruments on Rails 2.3
@@ -11,9 +11,6 @@ module ScoutApm
11
11
  begin
12
12
  @log_file = wants_stdout? ? STDOUT : "#{log_file_path}/scout_apm.log"
13
13
  rescue => e
14
- puts "OHH NO"
15
- puts e.message
16
- puts e.backtrace.join("\n\t")
17
14
  end
18
15
 
19
16
  begin
@@ -23,7 +20,7 @@ module ScoutApm
23
20
  rescue Exception => e
24
21
  @logger = Logger.new(STDOUT)
25
22
  apply_log_format
26
- @logger.error "Unable to access log file: #{e.message}"
23
+ @logger.error "Unable to open log file for writing: #{e.message}. Falling back to STDOUT"
27
24
  end
28
25
  @logger
29
26
  end
@@ -2,7 +2,8 @@
2
2
  module ScoutApm
3
3
  class LayawayFile
4
4
  def path
5
- "#{ScoutApm::Agent.instance.default_log_path}/scout_apm.db"
5
+ ScoutApm::Agent.instance.config.value("data_file") ||
6
+ "#{ScoutApm::Agent.instance.default_log_path}/scout_apm.db"
6
7
  end
7
8
 
8
9
  def dump(object)
@@ -36,7 +37,10 @@ module ScoutApm
36
37
  end
37
38
  end
38
39
  rescue Errno::ENOENT, Exception => e
39
- ScoutApm::Agent.instance.logger.error("Unable to access the layaway file [#{e.message}]. The user running the app must have read+write access.")
40
+ ScoutApm::Agent.instance.logger.error("Unable to access the layaway file [#{e.message}]. " +
41
+ "The user running the app must have read & write access. " +
42
+ "Change the path by setting the `data_file` key in scout_apm.yml"
43
+ )
40
44
  ScoutApm::Agent.instance.logger.debug(e.backtrace.split("\n"))
41
45
  # ensure the in-memory metric hash is cleared so data doesn't continue to accumulate.
42
46
  ScoutApm::Agent.instance.store.metric_hash = {}
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
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: 0.1.13
4
+ version: 0.1.14
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: 2015-09-14 00:00:00.000000000 Z
12
+ date: 2015-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest