lookout-zipkin-tracer 0.4.1-java → 0.4.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zipkin-tracer.rb +5 -3
- data/lib/zipkin-tracer/version.rb +1 -1
- data/lib/zipkin-tracer/zipkin_kafka_tracer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63c263c24af70ef4c5ff3d945b7f8c86941b62c
|
4
|
+
data.tar.gz: 6ff20b613364e7043feb274646cc20bf5c9fcecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7784932c375e95b1bfe1a1d3aa7b1face98a5c129426a289bf71f267b17f8cb0a115d48e4c67d3fc762e3059706049d4bfd7ac6d40ad522ea2433d69b9f22e50
|
7
|
+
data.tar.gz: 1797a2fcd33295d136768b4af134f7aacb698483b4a2ea86e9dcb9b9cc925640df45808f962ca66aa98ca836547ae0cde64cadf5746f12c90aea9d57da418549
|
data/lib/zipkin-tracer.rb
CHANGED
@@ -14,9 +14,11 @@
|
|
14
14
|
require 'finagle-thrift'
|
15
15
|
require 'finagle-thrift/trace'
|
16
16
|
require 'scribe'
|
17
|
-
|
18
17
|
require 'zipkin-tracer/careless_scribe'
|
19
|
-
|
18
|
+
|
19
|
+
if RUBY_PLATFORM == 'java'
|
20
|
+
require 'zipkin-tracer/zipkin_kafka_tracer'
|
21
|
+
end
|
20
22
|
|
21
23
|
module ZipkinTracer extend self
|
22
24
|
|
@@ -37,7 +39,7 @@ module ZipkinTracer extend self
|
|
37
39
|
careless_scribe = CarelessScribe.new(scribe)
|
38
40
|
scribe_max_buffer = config[:scribe_max_buffer] ? config[:scribe_max_buffer] : 10
|
39
41
|
::Trace.tracer = ::Trace::ZipkinTracer.new(careless_scribe, scribe_max_buffer)
|
40
|
-
elsif config[:zookeeper]
|
42
|
+
elsif config[:zookeeper] && RUBY_PLATFORM == 'java'
|
41
43
|
kafkaTracer = ::Trace::ZipkinKafkaTracer.new
|
42
44
|
kafkaTracer.connect(config[:zookeeper])
|
43
45
|
::Trace.tracer = kafkaTracer
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookout-zipkin-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Ariel Salomon, Franklin Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finagle-thrift
|