oneapm_rpm 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/one_apm/agent/datastore/metric_helper.rb +23 -16
- data/lib/one_apm/support/http_clients/uri_util.rb +5 -2
- data/lib/one_apm/version.rb +3 -2
- data/oneapm_rpm.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d94355838c55b992111ec0531980237b0f7e57b8
|
4
|
+
data.tar.gz: 4b484e6161e5233b5de9658808d4d0b2bc64d66d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
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
|
|
data/lib/one_apm/version.rb
CHANGED
data/oneapm_rpm.gemspec
CHANGED
@@ -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.
|
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
|
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.
|
565
|
+
rubygems_version: 2.6.12
|
566
566
|
signing_key:
|
567
567
|
specification_version: 4
|
568
568
|
summary: OneApm Ruby Agent
|