kafka-opentracing 0.1.0 → 0.2.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: eff7c932049d6bd768047eb6d3fbc5134be04748
4
- data.tar.gz: a83b0a917ca2b5cfa2ab326fb078559ae716cde0
3
+ metadata.gz: f3f5df9eb553f1d6a14d65e480ab512d0af4a339
4
+ data.tar.gz: dbf9fd5e3cf5c537f2852b4b0cddb5026ce6462e
5
5
  SHA512:
6
- metadata.gz: 28c340450683ee46ebbddd28f756905f89c105dba3f3f5d29537fdae7b2203e7dfdadd6500cace2d422959b13c4a46843b1b484864a4d8eb583a38c6ff8d7736
7
- data.tar.gz: c3357b95766f1920a7ad93a4c687d00ca540ac790275487a701ab4b549083bec16bdfe3eed6dd9b0b575833e8b6d0bcdb2d970539a77e5529345c22d36c5e9d9
6
+ metadata.gz: acbff39eb597abeddb76e98b370fb61f69641e5304b832ed487143af0074aa1a8bd271dface38877df292fd5c00b467a490e7f7d836c2ed9778949a6db365ad1
7
+ data.tar.gz: 359567fa1e926ef4f1a55c1d4f9c479cf41c490ecb1c095185fa427909741587758fe98a1a7af9de21e29c6db2ddd9184c680bb4035a5fcd1d99419186cb7301
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## 0.2.0 08/16/2019
5
+ * Catch load errors when kafka is not present
6
+
4
7
  ## 0.1.0 08/08/2019
5
8
  * Instrumention for open tracing
6
9
  * Producer apis
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kafka-opentracing (0.1.0)
4
+ kafka-opentracing (0.2.0)
5
5
  opentracing (~> 0.5.0)
6
6
 
7
7
  GEM
data/lib/kafka/tracer.rb CHANGED
@@ -13,6 +13,11 @@ module Kafka
13
13
  IngoreMessage = ->(_value, _key, _headers, _topic, _partition, _partition_key) { false }
14
14
 
15
15
  def instrument(tracer: OpenTracing.global_tracer, ignore_message: IngoreMessage)
16
+ begin
17
+ require 'kafka'
18
+ rescue LoadError
19
+ return
20
+ end
16
21
  raise IncompatibleGemVersion unless compatible_version?
17
22
 
18
23
  @ignore_message = ignore_message
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kafka
4
4
  module Tracer
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafka-opentracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Fischer