scout_apm 0.9.3pre3 → 0.9.3

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: bbae58c4faed841fe654b224c6226154ac4a7721
4
- data.tar.gz: 506b8c5ffc11b916fccdc1f8dbadcce4c8ec35d9
3
+ metadata.gz: a907c253bd85a901ab406ff8387fa9aa59e85449
4
+ data.tar.gz: f0e9a9b401a30f99345de8c05c6d14c1e21745cc
5
5
  SHA512:
6
- metadata.gz: d1ae45b87aa08a6f9fc79cde4b964a9fbed98bb41a2be75d2fae90a1f31822a0190a0bf22494f2c0f81aa998d300384c690bef3be85631e9b354df8daae903af
7
- data.tar.gz: 8d698a13488cac59750caf2b0cf295c12cf56459dd354c44a24151378c9935f03e48722dd12d0e91eab947af5418c0889c673d9bed0ce84360ede797a385a788
6
+ metadata.gz: b2cedb274a39605d8e72ffec02065f16f5b141240af125eaa3e9f0bf5416832f53971deb552a9bedadb1994ca63c60f9c0a04b5ce43ad22169a9b82be1b3f659
7
+ data.tar.gz: a495c63bcfb4fc9064c402c877cf17fd08eac34d32c33507cb611474e447f0b1aede1cee663bc44200e004c3f9659af61959535dd23c5da7df59d942fc59a8dc
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.9.3
2
+
3
+ * Parse SQL correctly when using PostGIS
4
+ * Quiet overly aggressive logging during startup.
5
+ You can still turn up logging by setting the SCOUT_LOG_LEVEL environment variable to 'DEBUG'
6
+ * Various minor bug fixes and clarification of log messages
7
+
1
8
  # 0.9.2
2
9
 
3
10
  * Internal changes and bug fixes.
@@ -199,6 +199,8 @@ module ScoutApm
199
199
  end
200
200
 
201
201
  def install_instrument(instrument_klass)
202
+ # Don't attempt to install the same instrument twice
203
+ return if @installed_instruments.any? { |already_installed_instrument| instrument_klass === already_installed_instrument }
202
204
  instance = instrument_klass.new
203
205
  @installed_instruments << instance
204
206
  instance.install
@@ -31,13 +31,16 @@ module ScoutApm
31
31
  end
32
32
  end
33
33
 
34
- logger.debug("Metrics: #{metrics}")
35
- logger.debug("SlowTrans: #{slow_transactions}")
36
34
  metadata = {
37
- app_root: ScoutApm::Environment.instance.root,
35
+ app_root: ScoutApm::Environment.instance.root.to_s,
38
36
  unique_id: ScoutApm::Utils::UniqueId.simple
39
37
  }
40
38
 
39
+ logger.debug("Metrics: #{metrics}")
40
+ logger.debug("SlowTrans: #{slow_transactions}")
41
+ logger.debug("Metadata: #{metadata.inspect}")
42
+
43
+
41
44
  payload = ScoutApm::Serializers::PayloadSerializer.serialize(metadata, metrics, slow_transactions)
42
45
  slow_transactions_kb = Marshal.dump(slow_transactions).size/1024 # just for performance debugging
43
46
 
@@ -41,7 +41,7 @@ module ScoutApm
41
41
  "The user running the app must have read & write access. " +
42
42
  "Change the path by setting the `data_file` key in scout_apm.yml"
43
43
  )
44
- ScoutApm::Agent.instance.logger.debug(e.backtrace.split("\n"))
44
+ ScoutApm::Agent.instance.logger.debug(e.backtrace.join("\n\t"))
45
45
  # ensure the in-memory metric hash is cleared so data doesn't continue to accumulate.
46
46
  ScoutApm::Agent.instance.store.metric_hash = {}
47
47
  end
@@ -55,7 +55,7 @@ module ScoutApm
55
55
  (uri.query ? ('?' + uri.query) : ''),
56
56
  default_http_headers.merge(headers) )
57
57
  post.body = body
58
- response=connection.request(post)
58
+ response = connection.request(post)
59
59
  end
60
60
  response
61
61
  end
@@ -75,7 +75,7 @@ module ScoutApm
75
75
  logger.debug "/#{type} FAILED: #{response.inspect}"
76
76
  end
77
77
  rescue Exception
78
- logger.debug "Exception sending request to server: #{$!.message}\n#{$!.backtrace}"
78
+ logger.debug "Exception sending request to server: \n#{$!.message}\n\t#{$!.backtrace.join("\n\t")}"
79
79
  ensure
80
80
  response
81
81
  end
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "0.9.3pre3"
2
+ VERSION = "0.9.3"
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.9.3pre3
4
+ version: 0.9.3
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-10-16 00:00:00.000000000 Z
12
+ date: 2015-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -145,9 +145,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">"
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
- version: 1.3.1
150
+ version: '0'
151
151
  requirements: []
152
152
  rubyforge_project: scout_apm
153
153
  rubygems_version: 2.2.2