inst_statsd 2.1.0 → 2.1.1
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/statsd.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7eba72a497efc7967daa2dd99d270703bb6e513d34aa2a2c90b88ac7fe15ee6
|
4
|
+
data.tar.gz: ce9c3026304050075016db7fb959afdf2c574287b0e7ec6b0c2484db3e8429d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64aaa60431ec40f7cf7296778c96744438f76129ca7737683b5a5d8528d0b06d8e2a6a092e3dfefee13696fd0968dfa894016b3cdd947cf26f4134c090655413
|
7
|
+
data.tar.gz: ac9f462c401b1162924c769c0189bf5676eb5eede8d668233468b27e375fae65c5e466110cd8a869d92edef2eef46701854edd29ef7474c1778f4a15b81b219a
|
data/lib/inst_statsd/statsd.rb
CHANGED
@@ -53,6 +53,7 @@ module InstStatsd
|
|
53
53
|
end
|
54
54
|
|
55
55
|
if data_dog?
|
56
|
+
tags ||= {}
|
56
57
|
tags.merge!(dog_tags) if tags.is_a? Hash
|
57
58
|
tags = convert_tags(tags)
|
58
59
|
tags << 'host:' unless self.append_hostname?
|
@@ -107,7 +108,7 @@ module InstStatsd
|
|
107
108
|
@data_dog = true
|
108
109
|
host = statsd_settings[:host] || 'localhost'
|
109
110
|
port = statsd_settings[:port] || 8125
|
110
|
-
@statsd = Datadog::Statsd.new(host, port)
|
111
|
+
@statsd = ::Datadog::Statsd.new(host, port)
|
111
112
|
@statsd.dog_tags = statsd_settings[:dog_tags] || {}
|
112
113
|
@append_hostname = !statsd_settings.key?(:append_hostname) || !!statsd_settings[:append_hostname]
|
113
114
|
elsif statsd_settings && statsd_settings[:host]
|
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: 2.1.
|
4
|
+
version: 2.1.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: 2019-02-
|
12
|
+
date: 2019-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dogstatsd-ruby
|