redis-stream 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redis/stream/tracer/zipkin_tracer.rb +11 -2
- data/lib/redis/stream/version.rb +1 -1
- metadata +20 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddb0974393a49118bf47eb414666042ced6d2af3ada9599587cf8523380942c7
|
4
|
+
data.tar.gz: '054409416ce1c03c12b6dbbe6a1cdf26bc7e187437c27f868cb429ffe0de77be'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8d03a8827926994f5d62850355052088d25933ac99b9d0198d00f73f4b04a1a25795dbb7ea5f9ff96997ae6d99fdba9f90ef43c5c295c5a8faf4389f0c7dcd
|
7
|
+
data.tar.gz: dafeaa60370f1bd9b0616f154769d03caf5d6e3a6c450626d6e53926250ea7fe4f19574e2afa1707856d6ac63b4262efbb1786da9b4e4870b8b629780c06c145
|
@@ -11,7 +11,7 @@ module ZipkinTracer
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def trace(topic, span=nil)
|
14
|
-
if @tracer.
|
14
|
+
if @tracer.nil? || @tracer.class.name.eql?("Trace::NullSender")
|
15
15
|
yield nil if block_given?
|
16
16
|
else
|
17
17
|
trace_id = trace_id_from_span(span)
|
@@ -28,15 +28,21 @@ module ZipkinTracer
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
31
|
+
rescue Exception => e
|
32
|
+
@stream.logger.error(e.message)
|
33
|
+
return nil
|
31
34
|
end
|
32
35
|
|
33
36
|
def trace_error(msg, span = nil)
|
34
|
-
if @tracer.
|
37
|
+
if @tracer.nil? || @tracer.class.name.eql?("Trace::NullSender")
|
35
38
|
yield nil if block_given?
|
36
39
|
else
|
37
40
|
span.record_tag(Trace::Span::Tag::ERROR, msg)
|
38
41
|
yield span if block_given?
|
39
42
|
end
|
43
|
+
rescue Exception => e
|
44
|
+
@stream.logger.error(e.message)
|
45
|
+
return nil
|
40
46
|
end
|
41
47
|
|
42
48
|
private
|
@@ -59,6 +65,9 @@ module ZipkinTracer
|
|
59
65
|
end
|
60
66
|
|
61
67
|
Trace::TraceId.new(trace_id, parent_span_id, span_id, sampled, flags, shared)
|
68
|
+
rescue Exception => e
|
69
|
+
@stream.logger.error(e.message)
|
70
|
+
return nil
|
62
71
|
end
|
63
72
|
|
64
73
|
|
data/lib/redis/stream/version.rb
CHANGED
metadata
CHANGED
@@ -1,108 +1,108 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehmet Celik
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '2.0'
|
20
|
-
|
19
|
+
name: bundler
|
21
20
|
prerelease: false
|
21
|
+
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '10.0'
|
34
|
-
|
33
|
+
name: rake
|
35
34
|
prerelease: false
|
35
|
+
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '5.0'
|
48
|
-
|
47
|
+
name: minitest
|
49
48
|
prerelease: false
|
49
|
+
type: :development
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: redis
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - '='
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: 4.1.3
|
62
|
-
|
61
|
+
name: redis
|
63
62
|
prerelease: false
|
63
|
+
type: :runtime
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 4.1.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: moneta
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
72
|
- - "~>"
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
version: '1.2'
|
76
|
-
|
75
|
+
name: moneta
|
77
76
|
prerelease: false
|
77
|
+
type: :runtime
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: multi_json
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
86
85
|
requirements:
|
87
86
|
- - "~>"
|
88
87
|
- !ruby/object:Gem::Version
|
89
88
|
version: '1.14'
|
90
|
-
|
89
|
+
name: multi_json
|
91
90
|
prerelease: false
|
91
|
+
type: :runtime
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.14'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: zipkin-tracer
|
99
98
|
requirement: !ruby/object:Gem::Requirement
|
100
99
|
requirements:
|
101
100
|
- - "~>"
|
102
101
|
- !ruby/object:Gem::Version
|
103
102
|
version: '0.43'
|
104
|
-
|
103
|
+
name: zipkin-tracer
|
105
104
|
prerelease: false
|
105
|
+
type: :runtime
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
@@ -145,7 +145,7 @@ metadata:
|
|
145
145
|
homepage_uri: https://github.com/mehmetc/redis-stream
|
146
146
|
source_code_uri: https://github.com/mehmetc/redis-stream
|
147
147
|
changelog_uri: https://github.com/mehmetc/redis-stream
|
148
|
-
post_install_message:
|
148
|
+
post_install_message:
|
149
149
|
rdoc_options: []
|
150
150
|
require_paths:
|
151
151
|
- lib
|
@@ -160,8 +160,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
|
164
|
-
|
163
|
+
rubyforge_project:
|
164
|
+
rubygems_version: 2.7.9
|
165
|
+
signing_key:
|
165
166
|
specification_version: 4
|
166
167
|
summary: Sugar coating Redis Streams
|
167
168
|
test_files: []
|