statue 0.4.0 → 0.4.1

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
  SHA1:
3
- metadata.gz: c1e8d8ac15844fcc7be73f711dbef4dd68f674f4
4
- data.tar.gz: bb8f101f7b34197ef55c1ae9a1b796117fe73948
3
+ metadata.gz: 4fdc8f49712f20caa253a68837e3ded8f593d159
4
+ data.tar.gz: b375d188dd101cf7595f5b0efd2e1ef96e5ad78e
5
5
  SHA512:
6
- metadata.gz: df3750b4897fa143ec1f3c7eebf519e5f2d9fe698979843b3ec400d353dd5d85e2fcd5587af94d38bce454bfd1fae166e3e3234c5a7ae74465a7a22d19456b44
7
- data.tar.gz: d91000f02e854e6619666adfa9ea12c04685bc32463c8a7ebc694ce5722a95c310bafc95b310175b37a0d98b8f28a5c86fcd5f42618eb653f650dcfe2182af08
6
+ metadata.gz: 90baaf4adf2c7e4b3b48b5eec567151779a5abd9fe76c14cccca2f5e1f14c038547d39f3dd4b4581371546713bc90fb5eeacc6f5fc766a794870298354f8f66d
7
+ data.tar.gz: 471483570f2611dd69bb22517e107dbee594de0f708b493c1a5c3e1710e60cbed51ec614c7959071bc316da6eb0b2793275fe7c3d2ba5e0eab92beb85f457179
@@ -1,3 +1,9 @@
1
+ ## [0.4.1] - 2017-03-15
2
+
3
+ ### Documentation
4
+
5
+ - Added a simple example to the README.md detailing how to use the new `SidekiqStatistics` middleware.
6
+
1
7
  ## [0.4.0] - 2017-03-13
2
8
 
3
9
  ### Feature
data/README.md CHANGED
@@ -39,7 +39,7 @@ Statue.backend = Statue::LoggerBackend.new(Rails.logger)
39
39
 
40
40
  ## Usage
41
41
 
42
- ### Common meassurments
42
+ ### Common measurements
43
43
 
44
44
  `Statue.report_increment('metric.name')` -> send to Statsd an increment to the counter `metric.name`
45
45
 
@@ -71,6 +71,20 @@ stopwatch.stop # => reports duration from start until now as: "metric.runtime.to
71
71
 
72
72
  We provide a middleware to track basic request metrics, see: Statue::RackStatistics
73
73
 
74
+ ### Sidekiq Integration
75
+
76
+ There's also a middleware for **Sidekiq**, which can easily be added by adding these lines to the initializer:
77
+
78
+ ```ruby
79
+ # config/initializers/sidekiq.rb
80
+
81
+ Sidekiq.configure_server do |config|
82
+ config.server_middleware do |chain|
83
+ chain.add Statue::SidekiqStatistics::SidekiqMiddleware
84
+ end
85
+ end
86
+ ```
87
+
74
88
  ## Contributing
75
89
 
76
90
  1. Fork it ( https://github.com/restorando/statue/fork )
@@ -1,3 +1,3 @@
1
1
  module Statue
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Barreneche