inst_statsd 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inst_statsd/distribution.rb +2 -1
- data/lib/inst_statsd/version.rb +1 -1
- data/spec/inst_statsd/distribution_spec.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97f7ba19c16e12f36248b86629b16fb1bc2216ba0da3c3ff1da012c08582ee2
|
4
|
+
data.tar.gz: d7f43c64a477c5e6bf733ede3185b54a692e26440e1ba340886ac6c524f9da5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 825783ba4ef42ff8abc7b97d3a8a387be9c93c30e9b746482c119a905c74de57341ab38d32723bb37e2d28d5b5cbc33bde84e531eaa04067138d96b7b8f1b492
|
7
|
+
data.tar.gz: 45a3cfbc0e101a1dfdc758155290dbfca30f1c89832b73a6e376010ba8aaecdea55ebca764c023adfbdd4150bf120ca0f2e82eda6ba631d245cead49a25b9850
|
@@ -23,8 +23,9 @@ module InstStatsd
|
|
23
23
|
else
|
24
24
|
metric.to_s
|
25
25
|
end
|
26
|
+
tags = tags.merge(dog_tags) if tags.is_a?(Hash)
|
26
27
|
|
27
|
-
instance.distribution(metric, value, { tags: tags
|
28
|
+
instance.distribution(metric, value, { tags: tags })
|
28
29
|
end
|
29
30
|
|
30
31
|
# Increments the specified distribution metric by 1.
|
data/lib/inst_statsd/version.rb
CHANGED
@@ -30,6 +30,15 @@ RSpec.describe InstStatsd::Distribution do
|
|
30
30
|
|
31
31
|
subject
|
32
32
|
end
|
33
|
+
|
34
|
+
it "handles an array of tags" do
|
35
|
+
expect(instance).to receive(:distribution).with(
|
36
|
+
metric,
|
37
|
+
value,
|
38
|
+
{ tags: ["status:500"] }
|
39
|
+
)
|
40
|
+
InstStatsd::Statsd.distribution(metric, value, tags: ["status:500"])
|
41
|
+
end
|
33
42
|
end
|
34
43
|
|
35
44
|
context "when instance and data_dog? are not configured" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst_statsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
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: 2025-
|
12
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aroi
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '1.5'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
83
|
+
name: debug
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - ">="
|