meter 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meter/version.rb +1 -1
- data/lib/meter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ecf39f5556a5990f62a1fec9672638daea1f03c
|
4
|
+
data.tar.gz: 7c2cde533cc5703fe3b2be62273a4f3c1ff17291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bd277e28e8f387067c2d08a8040a0fa8506314cf76f1a38d8a2e1b837b72c7ba750d2d84c1dc0306b267a1e830ae7cb9ba5b35203e195b8e54be62ff33c91fa
|
7
|
+
data.tar.gz: 86d2a9c23d1470033f43d520471ed1671fb3d1512dc4bd851fed9951672d983d367e71822a671e115a12fceee6739908412cfbcc32f2c1e764265e0c0c617e4f
|
data/lib/meter/version.rb
CHANGED
data/lib/meter.rb
CHANGED
@@ -6,7 +6,7 @@ module Meter
|
|
6
6
|
def self.increment(key, options = {})
|
7
7
|
id = options.delete(:id)
|
8
8
|
backends.datadog.increment key, options
|
9
|
-
backends.counter.increment("#{key}.#{id}", options) if id
|
9
|
+
backends.counter.increment("#{::Meter.config.namespace}.#{key}.#{id}", options) if id
|
10
10
|
|
11
11
|
rescue => exception
|
12
12
|
::Meter.config.logger.error exception.inspect
|