alephant-publisher-queue 1.2.2 → 1.3.2

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: 5b590cf1e7cf30bca6cca7f73fe10bcf9c648898
4
- data.tar.gz: 29da5f54f879b6028bfac59535ba0bf395f46f93
3
+ metadata.gz: 3ade3942a76ca9dc03263b93476d5f12dbc77639
4
+ data.tar.gz: bd3451739e82e3ca376dfbeb9653f30c3dee65d9
5
5
  SHA512:
6
- metadata.gz: b5d04bd927018014cf4cc279a1c0a6ace1e3db4935c416c91acf6a610c372be72bd10b812931a121ecbec76730fd7d8f9241332425d91d20030a85d2a5c95c8a
7
- data.tar.gz: c7dd11510c0f4dc8e41aef301d740cbc9e00a7a0c1c9b4324ee719dac0aab143a7e47362d1ed3dc851071d339e916ff33b7f3d7c9953c39b36da158dda2afede
6
+ metadata.gz: 9c190441235939f4a96500709c22d6e14e1a8561db724212d66f928df6022b9de604ad78eecd766cc8bea2bd4cf80150198db7827a97807fb4117961f9171bca
7
+ data.tar.gz: 26e421043bbfee128a1264b3f3d9bb550cfa2da7510e53a684d21663dfc82e6db31f4e4fe647563b256ccc007dbf4103bd83717ac377cb491bdaef98dcab7415
@@ -49,7 +49,8 @@ module Alephant
49
49
  validate type, opts
50
50
  instance.merge! opts
51
51
  rescue Exception => e
52
- logger.warn "Publisher::Queue::Options#validate: '#{e.message}'"
52
+ logger.metric(:name => "PublisherQueueOptionsInvalidKeySpecified", :unit => "Count", :value => 1)
53
+ logger.error "Publisher::Queue::Options#validate: '#{e.message}'"
53
54
  puts e.message
54
55
  end
55
56
  end
@@ -24,9 +24,11 @@ module Alephant
24
24
 
25
25
  def async_store(m)
26
26
  Thread.new { store(m) }
27
+ logger.metric(:name => "PublisherQueueSQSHelperAsynchronouslyArchivedData", :unit => "Count", :value => 1)
27
28
  end
28
29
 
29
30
  def store(m)
31
+ logger.metric(:name => "PublisherQueueSQSHelperSynchronouslyArchivedData", :unit => "Count", :value => 1)
30
32
  logger.info "Publisher::Queue::SQSHelper::Archiver#store: '#{m.body}' at 'archive/#{date_key}/#{m.id}'"
31
33
  cache.put("archive/#{date_key}/#{m.id}", m.body, meta_for(m))
32
34
  end
@@ -29,6 +29,7 @@ module Alephant
29
29
  private
30
30
 
31
31
  def process(m)
32
+ logger.metric(:name => "PublisherQueueSQSHelperMessagesReceived", :unit => "Count", :value => 1)
32
33
  logger.info("Queue#message: received #{m.id}")
33
34
  archive m
34
35
  end
@@ -1,7 +1,7 @@
1
1
  module Alephant
2
2
  module Publisher
3
3
  module Queue
4
- VERSION = "1.2.2"
4
+ VERSION = "1.3.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-publisher-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - revett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-09 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement