scout_apm 1.2.0.pre5 → 1.2.0.pre6

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: a680e8cef85b93d5e282713634ce64a5ebf7970b
4
- data.tar.gz: 3c42708fb4709503fc4ac88281281ea1edf1757d
3
+ metadata.gz: 05dd09e7945b6f433240c54f77581a1af49c0252
4
+ data.tar.gz: ef6cf9474db3f1dfe29fd42b51674a949c10823f
5
5
  SHA512:
6
- metadata.gz: 97276bcd2d071b2f1df7729712093e1cb20e79c4b49bb7b0a032e0bce6838963409a60872d4e5ffb3abf1d88aed1984e7a177e9db38e362b00c6476d6c17304f
7
- data.tar.gz: 912b566fe6ca24b6045a8dc0b4dc094e4117d060843653806607acbd44f1d995269ee5df7aa5bc4c3ae6c6f48ed041d298c73c6ef8f8a93585c4ed0ca39664d2
6
+ metadata.gz: 4df5a0286bfd73f9f808b0dff7fa278642b6a3ed25194d8eef737ad336df320c729b036846d5d51a9b09dc3a4131390c1abd68066a7d8ad9c4d55dc5607de082
7
+ data.tar.gz: d90d9144bce09909058a12bd7e89865ad045b6d5633f3e781620306614b51651a8e4bb0728f6d3124c2b4336bd74cd1ddc4280ba5a9be18e35417606e065214d
@@ -67,6 +67,8 @@ module ScoutApm
67
67
  end
68
68
 
69
69
  def store_backtrace(bt)
70
+ return unless bt.is_a? Array
71
+ return unless bt.length > 0
70
72
  @backtrace = bt
71
73
  end
72
74
 
@@ -142,10 +142,16 @@ module ScoutApm
142
142
 
143
143
  meta_options.merge!(:desc => layer.desc) if layer.desc
144
144
 
145
+ # Specific Metric
145
146
  meta = MetricMeta.new(layer.legacy_metric_name, meta_options)
146
147
  meta.extra.merge!(:backtrace => layer.backtrace) if layer.backtrace
147
148
  metric_hash[meta] ||= MetricStats.new( meta_options.has_key?(:scope) )
149
+ stat = metric_hash[meta]
150
+ stat.update!(layer.total_call_time, layer.total_exclusive_time)
148
151
 
152
+ # Merged Metric (no specifics, just sum up by type
153
+ meta = MetricMeta.new("#{layer.type}/#{all}")
154
+ metric_hash[meta] ||= MetricStats.new(false)
149
155
  stat = metric_hash[meta]
150
156
  stat.update!(layer.total_call_time, layer.total_exclusive_time)
151
157
  end
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "1.2.0.pre5"
2
+ VERSION = "1.2.0.pre6"
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: 1.2.0.pre5
4
+ version: 1.2.0.pre6
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-12-14 00:00:00.000000000 Z
12
+ date: 2015-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest