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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/kafka/tracer.rb +5 -0
- data/lib/kafka/tracer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3f5df9eb553f1d6a14d65e480ab512d0af4a339
|
4
|
+
data.tar.gz: dbf9fd5e3cf5c537f2852b4b0cddb5026ce6462e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acbff39eb597abeddb76e98b370fb61f69641e5304b832ed487143af0074aa1a8bd271dface38877df292fd5c00b467a490e7f7d836c2ed9778949a6db365ad1
|
7
|
+
data.tar.gz: 359567fa1e926ef4f1a55c1d4f9c479cf41c490ecb1c095185fa427909741587758fe98a1a7af9de21e29c6db2ddd9184c680bb4035a5fcd1d99419186cb7301
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
data/lib/kafka/tracer/version.rb
CHANGED