scout_apm 2.1.27 → 2.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +4 -0
- data/lib/scout_apm/app_server_load.rb +21 -11
- 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: 22f54f5575e5fa0642c1cf7ff44765a6e0c98d1a
|
4
|
+
data.tar.gz: eeb667d66ae69e342b2de1edc62ec475bcfa253c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb7d3f65c107e6b9f1a09e4def243b10827f061160f9a38426ee1d66b8e19f22d971f337bcdf22acf844492c3838c261ce87874f95a636ccc17e4c03aeb66093
|
7
|
+
data.tar.gz: 62e63d73def12c4eca6f27f724cf6d06b3945aa8ebb467c76015032b6942279beade0c262969b147142018a10351cef5a9539ee6ea2f465ae1fcafc8d46a4adb
|
data/CHANGELOG.markdown
CHANGED
@@ -27,20 +27,30 @@ module ScoutApm
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def data
|
30
|
-
{ :server_time => Time.now,
|
31
|
-
:framework => ScoutApm::Environment.instance.framework_integration.human_name,
|
32
|
-
:framework_version => ScoutApm::Environment.instance.framework_integration.version,
|
33
|
-
:environment => ScoutApm::Environment.instance.framework_integration.env,
|
34
|
-
:app_server => ScoutApm::Environment.instance.app_server,
|
30
|
+
{ :server_time => to_s_safe(Time.now),
|
31
|
+
:framework => to_s_safe(ScoutApm::Environment.instance.framework_integration.human_name),
|
32
|
+
:framework_version => to_s_safe(ScoutApm::Environment.instance.framework_integration.version),
|
33
|
+
:environment => to_s_safe(ScoutApm::Environment.instance.framework_integration.env),
|
34
|
+
:app_server => to_s_safe(ScoutApm::Environment.instance.app_server),
|
35
35
|
:ruby_version => RUBY_VERSION,
|
36
|
-
:hostname => ScoutApm::Environment.instance.hostname,
|
37
|
-
:database_engine => ScoutApm::Environment.instance.database_engine, # Detected
|
38
|
-
:database_adapter => ScoutApm::Environment.instance.raw_database_adapter, # Raw
|
39
|
-
:application_name => ScoutApm::Environment.instance.application_name,
|
36
|
+
:hostname => to_s_safe(ScoutApm::Environment.instance.hostname),
|
37
|
+
:database_engine => to_s_safe(ScoutApm::Environment.instance.database_engine), # Detected
|
38
|
+
:database_adapter => to_s_safe(ScoutApm::Environment.instance.raw_database_adapter), # Raw
|
39
|
+
:application_name => to_s_safe(ScoutApm::Environment.instance.application_name),
|
40
40
|
:libraries => ScoutApm::Utils::InstalledGems.new.run,
|
41
|
-
:paas => ScoutApm::Environment.instance.platform_integration.name,
|
42
|
-
:git_sha => ScoutApm::Environment.instance.git_revision.sha
|
41
|
+
:paas => to_s_safe(ScoutApm::Environment.instance.platform_integration.name),
|
42
|
+
:git_sha => to_s_safe(ScoutApm::Environment.instance.git_revision.sha)
|
43
43
|
}
|
44
44
|
end
|
45
|
+
|
46
|
+
# Calls `.to_s` on the object passed in.
|
47
|
+
# Returns literal string 'to_s error' if the object does not respond to .to_s
|
48
|
+
def to_s_safe(obj)
|
49
|
+
if obj.respond_to?(:to_s)
|
50
|
+
obj.to_s
|
51
|
+
else
|
52
|
+
'to_s error'
|
53
|
+
end
|
54
|
+
end
|
45
55
|
end
|
46
56
|
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: 2.1.
|
4
|
+
version: 2.1.28
|
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: 2017-
|
12
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|