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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6582ade5d3c4c94d6b8fa70ef5581d7a6257196b
4
- data.tar.gz: 840305139be243d6a891cecddf2d6e33d18f1854
3
+ metadata.gz: 22f54f5575e5fa0642c1cf7ff44765a6e0c98d1a
4
+ data.tar.gz: eeb667d66ae69e342b2de1edc62ec475bcfa253c
5
5
  SHA512:
6
- metadata.gz: 70fafc4515edd1af5528705100bc14bf0d9196db6db26057376c5623c7696415b7ca80133a7b0923faa1fcad4889c53b2edc69770ffc5b934f57f2aa06c97069
7
- data.tar.gz: 3b75c9c1b417190aa5487e4a8b9b1cb6ef1723dd7320347d4167eaac683ece60d259648d4872326ed48477ca7d38ea09ca6b83739d0939cd22e03c83b251027b
6
+ metadata.gz: fb7d3f65c107e6b9f1a09e4def243b10827f061160f9a38426ee1d66b8e19f22d971f337bcdf22acf844492c3838c261ce87874f95a636ccc17e4c03aeb66093
7
+ data.tar.gz: 62e63d73def12c4eca6f27f724cf6d06b3945aa8ebb467c76015032b6942279beade0c262969b147142018a10351cef5a9539ee6ea2f465ae1fcafc8d46a4adb
@@ -1,3 +1,7 @@
1
+ # 2.1.28
2
+
3
+ * Changes to app server load data
4
+
1
5
  # 2.1.27
2
6
 
3
7
  * Don't attempt to call `current_layer.type` on nil
@@ -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
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "2.1.27"
2
+ VERSION = "2.1.28"
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.1.27
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-07-26 00:00:00.000000000 Z
12
+ date: 2017-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest