lookout-zipkin-tracer 0.4.0-java → 0.4.1-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/version.rb +1 -1
- data/lib/zipkin-tracer.rb +3 -3
- 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: 0ff457023bcad25958a69ce8d9dee7aab79e33d4
|
4
|
+
data.tar.gz: f3a146e27bd6e8e04144f3cda9452b179056ea38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57b07bb31b36f59be5a99a4c6a83f39d1790e9173d00606b67bd362f4aa82b3e96d5bcec87d9a74b521e89dbe49f176c75f2602db53cce950533ceb4c2b7f331
|
7
|
+
data.tar.gz: ceedff6b6f98f3b0588e061a8a59e70cbf5f89708969ac7e4dcbf6b9ba84111ced638058caf019173e22cd2ab4500c9c7c04853e7fee45cba2f01d73bd1e8b50
|
data/lib/zipkin-tracer.rb
CHANGED
@@ -38,7 +38,9 @@ module ZipkinTracer extend self
|
|
38
38
|
scribe_max_buffer = config[:scribe_max_buffer] ? config[:scribe_max_buffer] : 10
|
39
39
|
::Trace.tracer = ::Trace::ZipkinTracer.new(careless_scribe, scribe_max_buffer)
|
40
40
|
elsif config[:zookeeper]
|
41
|
-
|
41
|
+
kafkaTracer = ::Trace::ZipkinKafkaTracer.new
|
42
|
+
kafkaTracer.connect(config[:zookeeper])
|
43
|
+
::Trace.tracer = kafkaTracer
|
42
44
|
end
|
43
45
|
|
44
46
|
@sample_rate = config[:sample_rate] ? config[:sample_rate] : 0.1
|
@@ -46,8 +48,6 @@ module ZipkinTracer extend self
|
|
46
48
|
@annotate_plugin = config[:annotate_plugin] # call for trace annotation
|
47
49
|
@filter_plugin = config[:filter_plugin] # skip tracing if returns false
|
48
50
|
@whitelist_plugin = config[:whitelist_plugin] # force sampling if returns true
|
49
|
-
|
50
|
-
|
51
51
|
end
|
52
52
|
|
53
53
|
def call(env)
|
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.1
|
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-
|
11
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finagle-thrift
|