lookout-zipkin-tracer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/zipkin-tracer.rb +14 -3
- data/lib/zipkin-tracer/version.rb +1 -1
- metadata +52 -38
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NWM5NTY4ZjljYmE4ZjVkMjA0ZTY5N2RjZjliMTI1NWFiMWRmNTQzNw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b5a470d9cd0e51168046839f728a57ff41d06364
|
4
|
+
data.tar.gz: 832f5ae13c967631446b2d07ffcc7db011a8747e
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZGFhM2VhZjYwYjVkNDVhMDQ2NGI0NDdmNmI5MTMwYzM2NDUxZTdmZGRjM2E1
|
11
|
-
OWIxNmM2MTQ3OGYxNzRkNDkyMTYzZGM5YTcwODZjZTdhNTYwNzA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YjM5YWJlNzUwY2ExZmQyZmQ3ODk4ODVlOGNkZGVkMjNkNjkzZWNkZGI5Zjgy
|
14
|
-
YzY4ZjQ2ZGYxM2M2N2FjMDVhODViM2NjMzM3MDdjMDVjZjAxNWMwMjg5OGI3
|
15
|
-
YjYzYzkyNWRhMDljZTQwYjY0YThlZmVkYWQwZjc5MGFmZjFkMDE=
|
6
|
+
metadata.gz: 0f34a4f2cee234ae33061ec3f1b33e0ed15dc60b7fa9bd8d3602499d048e90b016605cf469546b6a5f4457b8f71837841c6f51903aa485b4f02bdf263efde8dc
|
7
|
+
data.tar.gz: 67dbdad0931780f7c4993febbcd9df4a0fe08f2d3584e0f340c33fae2e711493669ea9fc603c0cbd1d6a6309e28c84bd1714dd83f8385d90c8c96008212597c3
|
data/lib/zipkin-tracer.rb
CHANGED
@@ -13,11 +13,22 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
require 'finagle-thrift'
|
15
15
|
require 'finagle-thrift/trace'
|
16
|
+
|
17
|
+
begin
|
16
18
|
require 'scribe'
|
19
|
+
rescue LoadError
|
20
|
+
# Scribe is not installed
|
21
|
+
end
|
22
|
+
|
17
23
|
require 'zipkin-tracer/careless_scribe'
|
18
24
|
|
19
25
|
if RUBY_PLATFORM == 'java'
|
20
|
-
|
26
|
+
begin
|
27
|
+
require 'hermann/producer'
|
28
|
+
rescue LoadError
|
29
|
+
# Hermann not available
|
30
|
+
end
|
31
|
+
require 'zipkin-tracer/zipkin_kafka_tracer' if defined?(::Hermann)
|
21
32
|
end
|
22
33
|
|
23
34
|
module ZipkinTracer extend self
|
@@ -34,12 +45,12 @@ module ZipkinTracer extend self
|
|
34
45
|
@service_name = config[:service_name]
|
35
46
|
@service_port = config[:service_port]
|
36
47
|
|
37
|
-
if config[:scribe_server]
|
48
|
+
if config[:scribe_server] && defined?(::Scribe)
|
38
49
|
scribe = config[:scribe_server] ? Scribe.new(config[:scribe_server]) : Scribe.new()
|
39
50
|
careless_scribe = CarelessScribe.new(scribe)
|
40
51
|
scribe_max_buffer = config[:scribe_max_buffer] ? config[:scribe_max_buffer] : 10
|
41
52
|
::Trace.tracer = ::Trace::ZipkinTracer.new(careless_scribe, scribe_max_buffer)
|
42
|
-
elsif config[:zookeeper] && RUBY_PLATFORM == 'java'
|
53
|
+
elsif config[:zookeeper] && RUBY_PLATFORM == 'java' && defined?(::Hermann)
|
43
54
|
kafkaTracer = ::Trace::ZipkinKafkaTracer.new
|
44
55
|
kafkaTracer.connect(config[:zookeeper])
|
45
56
|
::Trace.tracer = kafkaTracer
|
metadata
CHANGED
@@ -1,85 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookout-zipkin-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Salomon, Franklin Hu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finagle-thrift
|
15
|
-
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.4'
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
22
|
- - ~>
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: '1.4'
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rack
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
30
35
|
requirements:
|
31
|
-
- -
|
36
|
+
- - '>='
|
32
37
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
34
|
-
type: :runtime
|
38
|
+
version: '0'
|
35
39
|
prerelease: false
|
40
|
+
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
36
43
|
version_requirements: !ruby/object:Gem::Requirement
|
37
44
|
requirements:
|
38
45
|
- - ~>
|
39
46
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rack
|
47
|
+
version: 3.0.0
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
44
49
|
requirements:
|
45
|
-
- -
|
50
|
+
- - ~>
|
46
51
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
type: :runtime
|
52
|
+
version: 3.0.0
|
49
53
|
prerelease: false
|
54
|
+
type: :development
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rack-test
|
50
57
|
version_requirements: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
58
63
|
requirements:
|
59
|
-
- -
|
64
|
+
- - '>='
|
60
65
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :development
|
66
|
+
version: '0'
|
63
67
|
prerelease: false
|
68
|
+
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: hermann
|
64
71
|
version_requirements: !ruby/object:Gem::Requirement
|
65
72
|
requirements:
|
66
73
|
- - ~>
|
67
74
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rack-test
|
75
|
+
version: '0.24'
|
71
76
|
requirement: !ruby/object:Gem::Requirement
|
72
77
|
requirements:
|
73
|
-
- -
|
78
|
+
- - ~>
|
74
79
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
80
|
+
version: '0.24'
|
77
81
|
prerelease: false
|
82
|
+
type: :development
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: scribe
|
78
85
|
version_requirements: !ruby/object:Gem::Requirement
|
79
86
|
requirements:
|
80
|
-
- -
|
87
|
+
- - ~>
|
81
88
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
89
|
+
version: 0.2.4
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.2.4
|
95
|
+
prerelease: false
|
96
|
+
type: :development
|
83
97
|
description: Adds tracing instrumentation for ruby applications
|
84
98
|
email:
|
85
99
|
- ariel@lookout.com, franklin@twitter.com
|
@@ -87,31 +101,31 @@ executables: []
|
|
87
101
|
extensions: []
|
88
102
|
extra_rdoc_files: []
|
89
103
|
files:
|
104
|
+
- lib/zipkin-tracer.rb
|
90
105
|
- lib/zipkin-tracer/careless_scribe.rb
|
91
106
|
- lib/zipkin-tracer/version.rb
|
92
107
|
- lib/zipkin-tracer/zipkin_kafka_tracer.rb
|
93
|
-
- lib/zipkin-tracer.rb
|
94
108
|
homepage: https://github.com/lookout/zipkin
|
95
109
|
licenses: []
|
96
110
|
metadata: {}
|
97
|
-
post_install_message:
|
111
|
+
post_install_message:
|
98
112
|
rdoc_options: []
|
99
113
|
require_paths:
|
100
114
|
- lib
|
101
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
116
|
requirements:
|
103
|
-
- -
|
117
|
+
- - '>='
|
104
118
|
- !ruby/object:Gem::Version
|
105
119
|
version: '0'
|
106
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - '>='
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: 1.3.5
|
111
125
|
requirements: []
|
112
|
-
rubyforge_project:
|
113
|
-
rubygems_version: 2.1.
|
114
|
-
signing_key:
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.1.9
|
128
|
+
signing_key:
|
115
129
|
specification_version: 4
|
116
130
|
summary: Ruby tracing via Zipkin
|
117
131
|
test_files: []
|