zipkin-tracer 0.43.0 → 0.43.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/zipkin-tracer/version.rb +1 -1
- data/lib/zipkin-tracer/zipkin_sender_base.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2493a14e47c3a0a3b5f1873e37a0d3fdfcc6c8cba395fbb8c894edacec1449c4
|
4
|
+
data.tar.gz: 7f27e5b54765e4374be3cd18181bcb52b7629ac12c2b9c00f56b9a03d67bea5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f067698e91c87ee24909f7c4f3f47ffa3c081b06e8d6bade1788231835694c4f91d07e3373658427672b20d2e9a7403395bb989a1192b371c3ad1d4e59907c26
|
7
|
+
data.tar.gz: b0f099816909682ec8c6fec3a72426f5beb38ace33a5553b8214eb8778604cd33d9f641db3715548660671f0107c868f2c1f15cc1558fc12b1707f3cdf68fdc5
|
data/CHANGELOG.md
CHANGED
@@ -25,7 +25,7 @@ module Trace
|
|
25
25
|
# If in a thread not handling incoming http requests, it will not have Kind::SERVER, so the span
|
26
26
|
# will never be flushed and will cause memory leak.
|
27
27
|
# If no parent span, then current span needs to flush when it ends.
|
28
|
-
return if
|
28
|
+
return if skip_flush?(span)
|
29
29
|
|
30
30
|
flush!
|
31
31
|
reset
|
@@ -38,6 +38,11 @@ module Trace
|
|
38
38
|
span
|
39
39
|
end
|
40
40
|
|
41
|
+
def skip_flush?(span)
|
42
|
+
return true if span.kind == Trace::Span::Kind::CLIENT && span.has_parent_span?
|
43
|
+
return true if span.kind == Trace::Span::Kind::PRODUCER && spans.any? { |s| s.kind == Trace::Span::Kind::SERVER }
|
44
|
+
end
|
45
|
+
|
41
46
|
def flush!
|
42
47
|
raise "not implemented"
|
43
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zipkin-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.43.
|
4
|
+
version: 0.43.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franklin Hu
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2020-
|
17
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: faraday
|