sidekiq-skylight 0.0.3 → 0.0.4

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: 41f2c2db625e1bec62bf1c19a3dadf5e1fb0fb60
4
- data.tar.gz: d17631635666b083c56481ec34a7a4d78d081493
3
+ metadata.gz: 3443a4fe1cb4b12ba1f62189c03689fa9637d94e
4
+ data.tar.gz: 6e31c081e4403f5a0196e0c7ab77165c15fcb04a
5
5
  SHA512:
6
- metadata.gz: aef48b95ca47006d6e3599ee69273a4f000d16000c2c9822e4f0416bd0c273f3d7a5186f0b278e665537be60ad4cd9e75d160a7ca7e83567a4f3cf1ec06cc747
7
- data.tar.gz: bd316c57e844f4fd20f19d2a1f0626211f9750bc09f6bab4776a006a109a3d12aaeda45f82a723ffd4ae0e9d7452a91a21b83bd30593846f8ba1abadd695e13c
6
+ metadata.gz: cda709bddcee26addacc9ab156d0520187aa83e37c6bf5b49d95aa55194a1fde31333da4b18fd97b91e7b235e3e371f63e2b639a6c389b754de792409e4dd80b
7
+ data.tar.gz: 8b635e7e007a502bb24c7f9c554edbf4940aec00b4c049ff0f568040b67618cc42416ce5c49653410afdc9569ffa55fcebee7a1077e0a96ad101e42770ea4a1a
@@ -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: 'app.sidekiq.worker', title: 'process') do
7
+ ::Skylight.trace("#{worker.class.to_s}#perform", 'app.sidekiq.worker', '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.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -3,9 +3,11 @@ require 'spec_helper'
3
3
  describe Sidekiq::Skylight::ServerMiddleware do
4
4
  subject(:middleware){described_class.new}
5
5
 
6
+ FakeWorker = Class.new
7
+
6
8
  it 'wraps block in skylight instrument' do
7
- expect(::Skylight).to receive(:instrument).with(category: 'app.sidekiq.worker', title: 'process'){|&block| block.call}
9
+ expect(::Skylight).to receive(:trace).with('FakeWorker#perform', 'app.sidekiq.worker', 'process'){|&block| block.call}
8
10
 
9
- expect{|probe| middleware.call(double(:worker), double(:job), double(:queue), &probe)}.to yield_control
11
+ expect{|probe| middleware.call(FakeWorker.new, double(:job), double(:queue), &probe)}.to yield_control
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-skylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allen Madsen