sidekiq-skylight 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d5b9132e6449058fab6057ab5847fde6092f39c
4
- data.tar.gz: c33cb11479fbdbb9a75b73485486f7da63b6e0f0
3
+ metadata.gz: 41f2c2db625e1bec62bf1c19a3dadf5e1fb0fb60
4
+ data.tar.gz: d17631635666b083c56481ec34a7a4d78d081493
5
5
  SHA512:
6
- metadata.gz: 09281b80de0d041c0d1468d2b84e962990dce485ab4707a947139e60495c90eb8e3ff32cd7d1c1a5326417c5ba7465ab74b915f79c5bfd3c5b675f449d0dcd30
7
- data.tar.gz: f174c0eb6a0790f2781faa27e35a2dfb10a692dc885d1902bc88baafd18b04a901683c8757a270c322e92ff6ef2b63ee12097374984044b32f81e1cccb96a338
6
+ metadata.gz: aef48b95ca47006d6e3599ee69273a4f000d16000c2c9822e4f0416bd0c273f3d7a5186f0b278e665537be60ad4cd9e75d160a7ca7e83567a4f3cf1ec06cc747
7
+ data.tar.gz: bd316c57e844f4fd20f19d2a1f0626211f9750bc09f6bab4776a006a109a3d12aaeda45f82a723ffd4ae0e9d7452a91a21b83bd30593846f8ba1abadd695e13c
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Sidekiq::Skylight
2
2
 
3
+ [![Circle CI](https://circleci.com/gh/lintci/sidekiq-skylight.svg?style=svg)](https://circleci.com/gh/lintci/sidekiq-skylight)
4
+
3
5
  Middleware for instrumenting Sidekiq with Skylight.io
4
6
 
5
7
  ## Installation
data/circle.yml ADDED
@@ -0,0 +1,3 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.2.0
@@ -0,0 +1 @@
1
+ require_relative 'sidekiq/skylight'
@@ -4,7 +4,7 @@ module Sidekiq
4
4
  module Skylight
5
5
  class ServerMiddleware
6
6
  def call(worker, job, queue)
7
- ::Skylight.instrument(category: 'worker.sidekiq.job', title: 'perform') do
7
+ ::Skylight.instrument(category: 'app.sidekiq.worker', title: 'process') do
8
8
  yield
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Skylight
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ describe Sidekiq::Skylight::ServerMiddleware do
4
4
  subject(:middleware){described_class.new}
5
5
 
6
6
  it 'wraps block in skylight instrument' do
7
- expect(::Skylight).to receive(:instrument).with(category: 'worker.sidekiq.job', title: 'perform'){|&block| block.call}
7
+ expect(::Skylight).to receive(:instrument).with(category: 'app.sidekiq.worker', title: 'process'){|&block| block.call}
8
8
 
9
9
  expect{|probe| middleware.call(double(:worker), double(:job), double(:queue), &probe)}.to yield_control
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -90,11 +90,12 @@ extra_rdoc_files: []
90
90
  files:
91
91
  - ".gitignore"
92
92
  - ".rspec"
93
- - ".travis.yml"
94
93
  - Gemfile
95
94
  - LICENSE.txt
96
95
  - README.md
97
96
  - Rakefile
97
+ - circle.yml
98
+ - lib/sidekiq-skylight.rb
98
99
  - lib/sidekiq/skylight.rb
99
100
  - lib/sidekiq/skylight/server_middleware.rb
100
101
  - lib/sidekiq/skylight/version.rb
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.0