alephant-broker 3.6.1 → 3.7.0

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: 69b6cb65a44b589b920ef827d614f030cc86e356
4
- data.tar.gz: 355adc58028926abbd14c65d1271af0fbe8cbe29
3
+ metadata.gz: 138f40e4b3841bb0b17b5bf9cbe6d302c560b84c
4
+ data.tar.gz: 5ab80226a0858cc1036667010584abacc2516caa
5
5
  SHA512:
6
- metadata.gz: 2fbbb31bf1f3155fbc2d56eadb1ebf64b37aa111c568cafa8193da9a86eb0391ae37191a732b99417a44f9013c808c3c81f4c68170dafa94bbd6d3a4f5e7626e
7
- data.tar.gz: 0e9a58cc5db27b70dda053a61f47fc6f4a6fc170064966113e9cc9506787894313a1f3d02bb4216d6fd76b0803c8dd1b627c0df8c399bce1478d6063813994d9
6
+ metadata.gz: 7311e1cc1c4b60995d39a608a78004df0e076f12f7e8f4d0d413c58cf28e62ce7679d7a19be10087052c3753fe957df1ee2e6becaf492736c4efdb04ba723a21
7
+ data.tar.gz: f73a90df23b56d1d6c2d37ebef978254109b21a8ae8b3c04cc7ed84a1f439e1d0f193e41d56c09f22ddd7d43c6b596ef50d9aebd0542251d4bbc5f94e4fed470
@@ -80,7 +80,8 @@ module Alephant
80
80
 
81
81
  def lookup
82
82
  @lookup ||= Alephant::Lookup.create(
83
- Broker.config[:lookup_table_name]
83
+ Broker.config[:lookup_table_name],
84
+ Broker.config
84
85
  )
85
86
  end
86
87
 
@@ -21,7 +21,8 @@ module Alephant
21
21
 
22
22
  def sequencer
23
23
  @sequencer ||= Alephant::Sequencer.create(
24
- Broker.config[:sequencer_table_name], nil
24
+ Broker.config[:sequencer_table_name],
25
+ Broker.config
25
26
  )
26
27
  end
27
28
 
@@ -29,6 +29,7 @@ module Alephant
29
29
  end
30
30
 
31
31
  def log
32
+ logger.metric "BrokerResponse#{status}"
32
33
  logger.info "Broker: Component loaded! #{details} (200)"
33
34
  end
34
35
  end
@@ -44,8 +44,9 @@ module Alephant
44
44
  end
45
45
 
46
46
  def log
47
- logger.metric "BrokerResponse#{status}"
47
+ logger.metric "BrokerNon200Response#{status}"
48
48
  end
49
+
49
50
  end
50
51
  end
51
52
  end
@@ -34,7 +34,10 @@ module Alephant
34
34
  'content_type' => component.content_type,
35
35
  'body' => component.content
36
36
  }
37
- end.tap { logger.info "Broker: Batch load done (#{batch_id})" }
37
+ end.tap {
38
+ logger.info "Broker: Batch load done (#{batch_id})"
39
+ logger.metric "BrokerBatchLoadCount"
40
+ }
38
41
  end
39
42
 
40
43
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "3.6.1"
3
+ VERSION = "3.7.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC News
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement