scout_apm 0.1.13 → 0.1.14
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/agent/logging.rb +1 -4
- data/lib/scout_apm/layaway_file.rb +6 -2
- 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: 9e39795a06f1fa8ed47e67d607b5aed80eb18283
|
4
|
+
data.tar.gz: 349093f6c3d8c93981c53c56e995a4a903986385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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}].
|
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 = {}
|
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: 0.1.
|
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-
|
12
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|