ruby-dogstatsd 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0e7422f9d1ee23a902811baf6e6c21e9fbd592a7d8afdcd2404ed33fdd704ce
4
- data.tar.gz: 3628ea5cb73864f1282b5d2f4f731c2644895feb9d57022a1fc8ec5086041af6
3
+ metadata.gz: 730a4f08a5d51cc5c4406d669501ee2cd0ecb3fbab49b5ba562ba7009bbda66c
4
+ data.tar.gz: 76c0d55a34855b5094373a693f8c85d3bc20f14c0f63ca94cfcce638229ed2ab
5
5
  SHA512:
6
- metadata.gz: 9b14a3550a030fd65c803e07e2ca8f2e807cf4cd1e4700ca7c462eb65bc32a3112f679d9e8c0cdb565aa37d30fbf1649269694841a1d8bb998c59f0a6542be76
7
- data.tar.gz: 1c3777296d9f7d70f5cba827efc8f7276123692dc4acf7a84634532e303d57616181a68bed7bc85134658ecdd8ca12ff35c7b5f38ceaf7e13f6c8e493ff5abf5
6
+ metadata.gz: 0f43d9ea6a07a5100cd6d3d2437f80966d114443024417866d59b4a9bc8a93711a036786dd3bdfb7905bb3b0ecf7909f6e66d7274006ab1b4f1beaac27c700e4
7
+ data.tar.gz: 981a936038db2ea301147be1911a82c28b88bb01c13d46bd188abbbf881328d6729353a66742c546a130e63f680a6ce233fdcee96f9763eef25b6b9238006466
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
  ruby '2.5.1'
3
3
 
4
- gemspec
4
+ gemspec
@@ -1 +1 @@
1
- require "ruby/reporters/datadog"
1
+ require "ruby/reporters/datadog"
@@ -1 +1 @@
1
- require "rails/middleware/datadog"
1
+ require "rails/middleware/datadog"
@@ -43,4 +43,4 @@ module Rails
43
43
  end
44
44
  end
45
45
  end
46
- end
46
+ end
@@ -48,6 +48,14 @@ module Ruby
48
48
  tags:tags
49
49
  )
50
50
  end
51
+
52
+ def timing(metric_name, value, tags)
53
+ statsd.timing(
54
+ metric_name,
55
+ value,
56
+ tags:tags
57
+ )
58
+ end
51
59
 
52
60
  private
53
61
  def from_status_to_error(status)
@@ -1 +1 @@
1
- require "sidekiq/middleware/datadog"
1
+ require "sidekiq/middleware/datadog"
@@ -5,7 +5,7 @@ require 'sidekiq'
5
5
  module Sidekiq
6
6
  module Middleware
7
7
  class Datadog
8
- attr_accessor :hostname, :statsd_host, :statsd_port, :statsd, :xalala
8
+ attr_accessor :hostname, :statsd_host, :statsd_port, :statsd
9
9
  # Configure and install datadog instrumentation. Example:
10
10
  #
11
11
  # Sidekiq.configure_server do |config|
@@ -106,4 +106,4 @@ module Sidekiq
106
106
  end
107
107
  end
108
108
  end
109
- end
109
+ end
@@ -1 +1 @@
1
- require "sinatra/middleware/datadog"
1
+ require "sinatra/middleware/datadog"
@@ -5,4 +5,4 @@ module Sinatra
5
5
  class Datadog < Rails::Middleware::Datadog
6
6
  end
7
7
  end
8
- end
8
+ end
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.summary = "A scenario specifc dogstatsd client. DataDog/dogstatsd-ruby fork"
5
5
  spec.description = "Add ruby, sinatra and sidekiq middleware to DataDog/dogstatsd-ruby"
6
6
  spec.name = "ruby-dogstatsd"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.2.0"
8
8
  spec.authors = ["Top Free Games"]
9
9
  spec.email = ["backend@tfgco.com"]
10
10
  spec.description = %q{Rails middleware report metrics to Datadog}
@@ -68,4 +68,4 @@ describe Rails::Middleware::Datadog do
68
68
  def env_for(url, opts={})
69
69
  Rack::MockRequest.env_for(url, opts)
70
70
  end
71
- end
71
+ end
@@ -68,4 +68,4 @@ describe Ruby::Reporters::Datadog do
68
68
  end
69
69
  end
70
70
  end
71
- end
71
+ end
@@ -67,4 +67,4 @@ describe Sidekiq::Middleware::Datadog do
67
67
  end
68
68
  end
69
69
  end
70
- end
70
+ end
@@ -39,4 +39,4 @@ module Mock
39
39
  "<FakeUDPSocket: #{@buffer.inspect}>"
40
40
  end
41
41
  end
42
- end
42
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-dogstatsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Top Free Games
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dogstatsd-ruby