scout_apm 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +5 -0
- data/lib/scout_apm/config.rb +13 -0
- data/lib/scout_apm/environment.rb +5 -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: 2de2504dc757ce65e42e18f3fb18afa86a7e89da
|
4
|
+
data.tar.gz: a707556d8c0cd7423a9713dab0f25b25f0e36c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bee1a9d688b961fdc338d95757c38bcbe6b6bed75f84d7101a5fb85c389239bc687eb44bc2c44f2f6f909672cc717e1dc94e2e849cae227d8d2d9e493e5d3d
|
7
|
+
data.tar.gz: 8de5e6aed0e783986df2e5b5a2cc7c682ea95c8af8b6dff57bedb1a3131ee8fc118f8b8d8e51c3e1ff9e71818bafb86ade1e16a0cd4c4fc012b021f87d7caf2a
|
data/CHANGELOG.markdown
CHANGED
data/lib/scout_apm/config.rb
CHANGED
@@ -3,6 +3,19 @@ require 'erb'
|
|
3
3
|
|
4
4
|
require 'scout_apm/environment'
|
5
5
|
|
6
|
+
# Valid Config Options:
|
7
|
+
#
|
8
|
+
# application_root - override the detected directory of the application
|
9
|
+
# data_file - override the default temporary storage location. Must be a location in a writable directory
|
10
|
+
# key - the account key with Scout APM. Found in Settings in the Web UI
|
11
|
+
# log_file_path - either a directory or "STDOUT".
|
12
|
+
# log_level - DEBUG / INFO / WARN as usual
|
13
|
+
# monitor - true or false. False prevents any instrumentation from starting
|
14
|
+
# name - override the name reported to APM. This is the name that shows in the Web UI
|
15
|
+
#
|
16
|
+
# Any of these config settings can be set with an environment variable prefixed
|
17
|
+
# by SCOUT_ and uppercasing the key: SCOUT_LOG_LEVEL for instance.
|
18
|
+
|
6
19
|
module ScoutApm
|
7
20
|
class Config
|
8
21
|
DEFAULTS = {
|
@@ -58,12 +58,16 @@ module ScoutApm
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def root
|
61
|
+
if override_root = Agent.instance.config.value("application_root")
|
62
|
+
return override_root
|
63
|
+
end
|
64
|
+
|
61
65
|
if framework == :rails
|
62
66
|
RAILS_ROOT.to_s
|
63
67
|
elsif framework == :rails3_or_4
|
64
68
|
Rails.root
|
65
69
|
elsif framework == :sinatra
|
66
|
-
Sinatra::Application.root
|
70
|
+
Sinatra::Application.root || "."
|
67
71
|
else
|
68
72
|
'.'
|
69
73
|
end
|
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.15
|
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-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|