oneapm_rpm 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e5b0c0c59292b8f19af963c849d53950ac6a556
4
- data.tar.gz: e8362436077b6c3236e5672ae961a71cdd609bc4
3
+ metadata.gz: d94355838c55b992111ec0531980237b0f7e57b8
4
+ data.tar.gz: 4b484e6161e5233b5de9658808d4d0b2bc64d66d
5
5
  SHA512:
6
- metadata.gz: 4addfa281b3b3438d0710c627b8d5ead8e79ad222b2a82794e4721fd25a41bc8631c629704441f252514e388a47aaf90d552a259c1eef71785d17400dd2b118b
7
- data.tar.gz: eaab7c7c62faaf4d6f43b0929c5a1709dd9c96bd733687e325324295705e69652f62e0f068daaad98979dd1a9013bd7a753fc251b353ff7c820778b79b179e55
6
+ metadata.gz: 3466e03dbfceebed0482fea07276e1ee029fd04500baed33876f8adf9b378fc4be7a13b697b72e2f26303a79be06269f69045ef232ea5ca4f71a418f96690aac
7
+ data.tar.gz: 78716e10e0da55fdaf56c3dd0e59f5dcffc0825405d40f7500919158b5b963e0647aa25ac4416804f56efd0f937edb70d5ea42f92698d9adb2159f2062bd83ae
@@ -34,7 +34,7 @@ module OneApm
34
34
  end
35
35
 
36
36
  def self.product_rollup(product)
37
- "Datastore//#{product}/all"
37
+ "Datastore/#{product}/all"
38
38
  end
39
39
 
40
40
  def self.suffixed_rollup(suffix)
@@ -46,7 +46,7 @@ module OneApm
46
46
  "Datastore/statement/#{product}/#{collection}/#{operation}"
47
47
  end
48
48
 
49
- #Datastore/statement/NoSqlType:10.128.6.240:27017/book/insert
49
+ #Datastore/statement/NoSqlType:10.128.6.240:27017/insert
50
50
  def self.statement_action_metric_for(product, operation)
51
51
  "Datastore/statement/#{product}/#{operation}"
52
52
  end
@@ -78,20 +78,27 @@ module OneApm
78
78
 
79
79
  # Order of these metrics matters--the first metric in the list will
80
80
  # be treated as the scoped metric in a bunch of different cases.
81
- metrics = [
82
- operation_metric_for(product, operation),
83
- operation_product_rollup(product),
84
- operation_all(product),
85
- product_suffixed_rollup(product, suffix),
86
- product_rollup(product),
87
- suffixed_rollup(suffix),
88
- OA_ROLLUP_METRIC
89
- ]
90
-
91
- metrics.unshift statement_metric_for(product, collection, operation) if collection
92
- metrics.unshift statement_action_metric_for(product,operation)
93
- metrics.unshift statement_all_metric_for(product)
94
- metrics.unshift statement_all(product)
81
+ metrics = Array.new
82
+ unless collection
83
+ metrics.push(
84
+ operation_metric_for(product, operation),
85
+ operation_product_rollup(product),
86
+ operation_all(product)
87
+ )
88
+ else
89
+ metrics.push(
90
+ statement_metric_for(product, collection, operation),
91
+ statement_action_metric_for(product,operation),
92
+ statement_all_metric_for(product),
93
+ statement_all(product)
94
+ )
95
+ end
96
+ metrics.push(
97
+ product_suffixed_rollup(product, suffix),
98
+ product_rollup(product),
99
+ suffixed_rollup(suffix),
100
+ OA_ROLLUP_METRIC
101
+ )
95
102
  metrics
96
103
  end
97
104
 
@@ -29,8 +29,11 @@ module OneApm
29
29
  address.normalize!
30
30
  URI.parse(address.to_s)
31
31
  else
32
- 'http://'
33
- URI.parse(url)
32
+ if url.include?('://')
33
+ URI.parse(url)
34
+ else
35
+ URI.parse('http://' + url)
36
+ end
34
37
  end
35
38
  end
36
39
 
@@ -5,8 +5,9 @@ module OneApm
5
5
 
6
6
  MAJOR = 1
7
7
  MINOR = 4
8
- TINY = 1
9
-
8
+ TINY = 2
9
+ #TAG = Time.now.getutc.strftime("%Y%m%d%H%M%S")
10
+ #STRING = [MAJOR, MINOR, TINY, TAG].compact.join('.')
10
11
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
11
12
 
12
13
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.required_rubygems_version = '>= 1.3.5'
20
20
 
21
21
  file_list = `git ls-files`.split
22
- file_list.delete_if { |item| item =~ /(test\/|bin\/|Rakefile)/ }
22
+ file_list.delete_if { |item| item =~ /(test\/|bin\/|dev\/|Rakefile)/ }
23
23
  s.files = file_list
24
24
 
25
25
  s.require_paths = ['lib']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneapm_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - oneapm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -562,7 +562,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
562
  version: 1.3.5
563
563
  requirements: []
564
564
  rubyforge_project:
565
- rubygems_version: 2.4.8
565
+ rubygems_version: 2.6.12
566
566
  signing_key:
567
567
  specification_version: 4
568
568
  summary: OneApm Ruby Agent