meter 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/meter.rb +4 -0
  3. data/lib/meter/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7251d39b8598a821768f8b5194d091a4cf567da
4
- data.tar.gz: 2a901ecbdbbdd2ba0f1e663b09b526dd2d485e8c
3
+ metadata.gz: a16b383b11cd7e6a9ae94e8d45cf5406c2abc239
4
+ data.tar.gz: 9c26ee9e5f0b694cc5e3d4802a1c2786ec8ce462
5
5
  SHA512:
6
- metadata.gz: 6f681d9e84b87ed9ae215a54149a4a7ffe8e376b9452f67641cb8c46ddbcde141761e886dde90821fd3bbd7fd23c51caded9b12455dec197230e5c6f74a5ed55
7
- data.tar.gz: 193dddf526ebbe275b2278bc1f69f8af1b4805e05845b11b2c21d519713f29f0e14d792fa9355f3fd32025221ff97e62ac01f4d740f35eaac401b660d938ccc8
6
+ metadata.gz: 0fb0bc199b24c1d559b7514ccb6bea571dc46c36e62748953cbb969968ad399e5adfa4c7e651162c6e14990f0cd391c087828fe22ccaf31d0f9c8987c7a8239d
7
+ data.tar.gz: 67b15fc4562ecd74ec4995ccdd10e95ce1630a8feb524dedd03dc4383945cc8c4e6dd0380f1558c4dff522237a2947e1cdcd51544de8f27628b75d219cdcc1ba
data/lib/meter.rb CHANGED
@@ -24,6 +24,10 @@ module Meter
24
24
  end
25
25
  alias :track :increment
26
26
 
27
+ def log(key, log_data = {})
28
+ track key, data: log_data
29
+ end
30
+
27
31
  def gauge(key, value, sample_rate: 1, tags: {}, data: {})
28
32
  metric = Metric::Gauge.new(name: key, value: value, sample_rate: sample_rate, tags: tags, data: data)
29
33
  send_metric_to_backends(metric)
data/lib/meter/version.rb CHANGED
@@ -2,7 +2,7 @@ module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bukowskis