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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ff457023bcad25958a69ce8d9dee7aab79e33d4
4
- data.tar.gz: f3a146e27bd6e8e04144f3cda9452b179056ea38
3
+ metadata.gz: d63c263c24af70ef4c5ff3d945b7f8c86941b62c
4
+ data.tar.gz: 6ff20b613364e7043feb274646cc20bf5c9fcecf
5
5
  SHA512:
6
- metadata.gz: 57b07bb31b36f59be5a99a4c6a83f39d1790e9173d00606b67bd362f4aa82b3e96d5bcec87d9a74b521e89dbe49f176c75f2602db53cce950533ceb4c2b7f331
7
- data.tar.gz: ceedff6b6f98f3b0588e061a8a59e70cbf5f89708969ac7e4dcbf6b9ba84111ced638058caf019173e22cd2ab4500c9c7c04853e7fee45cba2f01d73bd1e8b50
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
- require 'zipkin-tracer/zipkin_kafka_tracer'
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
@@ -12,6 +12,6 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  module ZipkinTracer
15
- VERSION = "0.4.1"
15
+ VERSION = "0.4.2"
16
16
  end
17
17
 
@@ -5,7 +5,7 @@ require 'hermann/discovery/zookeeper'
5
5
 
6
6
  module Trace
7
7
  class ZipkinKafkaTracer < Tracer
8
- TRACER_CATEGORY = "zipkin".freeze
8
+ TRACER_CATEGORY = "zipkin".freeze
9
9
  DEFAULT_KAFKA_TOPIC = "zipkin_kafka".freeze
10
10
 
11
11
  def initialize(opts={})
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.1
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-02-27 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: finagle-thrift