pliny-sidekiq 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/pliny/sidekiq/middleware/server/log.rb +1 -9
- data/lib/pliny/sidekiq/version.rb +1 -1
- data/pliny-sidekiq.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab240d9f7969d7049596632f177ffad4f5a139ac
|
4
|
+
data.tar.gz: 3b0c41b7dcf5b0254ff4937e415dea0b687c84c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa733fe7245f5a4f56e0b2fbd6850e1072c7a637ea20858eb632f7961613a676bef3517d7a4ea5e7ed528f0c42cd4f2e4964ba55fc17069f6458d77de04e6dc
|
7
|
+
data.tar.gz: a6d70ac9a6b31d97e8183413df4c2eab880d04078eb69e1a6e755d0bb2a8a8e1f190a979703ed50f1f26845fb87d5c1164576ebe8ed3e6922a6ec426b35b0fda
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
|
+
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
|
9
|
+
## 0.2.0
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Pliny `0.18.0` or greater is now required.
|
13
|
+
- Metrics reporting for job and queue counts now use the `Pliny::Metrics` API.
|
14
|
+
|
15
|
+
### Removed
|
16
|
+
- Options for `Pliny::Sidekiq::Middleware::Server::Log` are no longer
|
17
|
+
supported, including `metric_prefix`.
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module Pliny::Sidekiq::Middleware
|
2
2
|
module Server
|
3
3
|
class Log
|
4
|
-
def initialize(metric_prefix: nil)
|
5
|
-
@metric_prefix = metric_prefix
|
6
|
-
end
|
7
|
-
|
8
4
|
def call(worker, job, queue)
|
9
5
|
context = {
|
10
6
|
sidekiq: true,
|
@@ -25,11 +21,7 @@ module Pliny::Sidekiq::Middleware
|
|
25
21
|
private
|
26
22
|
|
27
23
|
def count(key, value=1)
|
28
|
-
Pliny.
|
29
|
-
end
|
30
|
-
|
31
|
-
def metric_prefix
|
32
|
-
@metric_prefix.nil? ? '' : "#{@metric_prefix}."
|
24
|
+
Pliny::Metrics.count("sidekiq.#{key}", value)
|
33
25
|
end
|
34
26
|
end
|
35
27
|
end
|
data/pliny-sidekiq.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
-
spec.add_dependency "pliny"
|
20
|
+
spec.add_dependency "pliny", ">= 0.18.0"
|
21
21
|
spec.add_dependency "sidekiq"
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.10"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pliny-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guðmundur Bjarni Ólafsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pliny
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.18.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.18.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sidekiq
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,6 +117,7 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- ".gitignore"
|
119
119
|
- ".travis.yml"
|
120
|
+
- CHANGELOG.md
|
120
121
|
- Gemfile
|
121
122
|
- LICENSE
|
122
123
|
- README.md
|
@@ -150,9 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
151
|
version: '0'
|
151
152
|
requirements: []
|
152
153
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.5.1
|
154
155
|
signing_key:
|
155
156
|
specification_version: 4
|
156
157
|
summary: Pliny logging and request_id support for Sidekiq
|
157
158
|
test_files: []
|
158
|
-
has_rdoc:
|