formatted-metrics 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metrics/grouping.rb +1 -1
- data/lib/metrics/version.rb +1 -1
- data/spec/metrics/grouping_spec.rb +5 -5
- metadata +3 -3
data/lib/metrics/grouping.rb
CHANGED
data/lib/metrics/version.rb
CHANGED
@@ -3,17 +3,17 @@ require 'spec_helper'
|
|
3
3
|
describe Metrics::Grouping do
|
4
4
|
describe '.instrumenters' do
|
5
5
|
it 'builds instruments' do
|
6
|
-
group = described_class.new do
|
7
|
-
instrument 'jobs.busy', 10
|
8
|
-
instrument 'rack.request.time', 500, units: 'ms'
|
6
|
+
group = described_class.new do |group|
|
7
|
+
group.instrument 'jobs.busy', 10
|
8
|
+
group.instrument 'rack.request.time', 500, units: 'ms'
|
9
9
|
end
|
10
10
|
|
11
11
|
expect(group.instrumenters).to have(2).instrumenters
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'allows a namespace to be provided' do
|
15
|
-
group = described_class.new 'rack' do
|
16
|
-
instrument 'request.time', 500, units: 'ms'
|
15
|
+
group = described_class.new 'rack' do |group|
|
16
|
+
group.instrument 'request.time', 500, units: 'ms'
|
17
17
|
end
|
18
18
|
|
19
19
|
expect(group.instrumenters.first.metric).to eq 'rack.request.time'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formatted-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: 911908351161630628
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
segments:
|
117
117
|
- 0
|
118
|
-
hash:
|
118
|
+
hash: 911908351161630628
|
119
119
|
requirements: []
|
120
120
|
rubyforge_project:
|
121
121
|
rubygems_version: 1.8.23
|