canvas_statsd 2.0.0 → 2.0.1
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 +4 -4
- data/lib/canvas_statsd/block_tracking.rb +1 -1
- data/spec/canvas_statsd/block_tracking_spec.rb +9 -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: b2c54cdb899ff21986ae486d9267df47635acf60
|
|
4
|
+
data.tar.gz: 4d5c68e5e2d059c4aeb68e4776166d7871bb2c5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a70d652c80696b6bf79814fd0e64ad4fdd442792a902f088b7847297159cde5a03de20b50ce071ab5a6feb24ff5bc430e4ef36f1dc36fa6c6eab99b5b42b4dd
|
|
7
|
+
data.tar.gz: 03f015d44447c96b8b107db4a756c05cf83a53df5258e9e6350d09020dff12cc2fb24010b58d80ee1263a4bafd75ca341d2dd0565d801a6176057abe870cb586
|
|
@@ -21,7 +21,11 @@ describe CanvasStatsd::BlockTracking do
|
|
|
21
21
|
expect(statsd).to receive(:timing).with('mykey.total', anything).ordered
|
|
22
22
|
expect(statsd).to receive(:timing).with("mykey.exclusive.sql.read", 2).ordered
|
|
23
23
|
expect(statsd).to receive(:timing).with('mykey.exclusive.total', anything).ordered
|
|
24
|
-
expect(statsd).to receive(:timing).with("mykey.sql.read",
|
|
24
|
+
expect(statsd).to receive(:timing).with("mykey.sql.read", 2).ordered
|
|
25
|
+
expect(statsd).to receive(:timing).with('mykey.total', anything).ordered
|
|
26
|
+
expect(statsd).to receive(:timing).with("mykey.exclusive.sql.read", 2).ordered
|
|
27
|
+
expect(statsd).to receive(:timing).with('mykey.exclusive.total', anything).ordered
|
|
28
|
+
expect(statsd).to receive(:timing).with("mykey.sql.read", 5).ordered
|
|
25
29
|
expect(statsd).to receive(:timing).with('mykey.total', anything).ordered
|
|
26
30
|
expect(statsd).to receive(:timing).with("mykey.exclusive.sql.read", 1).ordered
|
|
27
31
|
expect(statsd).to receive(:timing).with('mykey.exclusive.total', anything).ordered
|
|
@@ -32,6 +36,10 @@ describe CanvasStatsd::BlockTracking do
|
|
|
32
36
|
ActiveSupport::Notifications.instrument('sql.active_record', name: "LOAD", sql: "SELECT * FROM users") {}
|
|
33
37
|
ActiveSupport::Notifications.instrument('sql.active_record', name: "LOAD", sql: "SELECT * FROM users") {}
|
|
34
38
|
end
|
|
39
|
+
CanvasStatsd::BlockTracking.track("mykey", category: :nested, statsd: statsd, only: 'sql.read') do
|
|
40
|
+
ActiveSupport::Notifications.instrument('sql.active_record', name: "LOAD", sql: "SELECT * FROM users") {}
|
|
41
|
+
ActiveSupport::Notifications.instrument('sql.active_record', name: "LOAD", sql: "SELECT * FROM users") {}
|
|
42
|
+
end
|
|
35
43
|
end
|
|
36
44
|
end
|
|
37
45
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: canvas_statsd
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Cloward
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-01-
|
|
12
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: statsd-ruby
|
|
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
139
139
|
requirements:
|
|
140
140
|
- - ">="
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
|
-
version: '
|
|
142
|
+
version: '2.3'
|
|
143
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
requirements:
|
|
145
145
|
- - ">="
|