zipkin-tracer 0.47.1 → 0.47.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce3094b9f74dd042c34745150a69644c87e61acb21b973c0aac0eae21e4b1a94
4
- data.tar.gz: bf11f2ddb0503cf448cf2e0595418bce982cb1c4f1fd7594fbce0db5e3422a2f
3
+ metadata.gz: 7f1cd6e0b5790c467741c87272cab1fe3b1462eca4fe8a86ecdaac2589c42e01
4
+ data.tar.gz: cc1a4565e51850f3da085782a949b672fe6ef98c3d908ecc3f0682996b695a16
5
5
  SHA512:
6
- metadata.gz: 4ea9e6b556a501c882b06c22261e65d44e917d695f0624b677f261751e2bfd6054b6152dde01773c2b92e016226b40242252ae9d3a1b1d1dd734b420f22bc397
7
- data.tar.gz: 5dd88683e1f4b1727acbd41ca2ae0457cae8ff100853beaee5cb578e87a55fa1ebd733951b915a1047c4c3328005337f59df8bb40840cc5d386fd53525fd5f22
6
+ metadata.gz: 276fb50c73250e91458e7a2ad92f013f56f8ededd1861bac85b5dbb72a6f75b5e7a03c522bdc2097d9fe162890889288c02df1500593733244d960ad69c23298
7
+ data.tar.gz: d0cc046aaa2267a2f6ad987dba4567c35e672688528532a29d7101749978522a7a14d1c79004eb8e50b1663493f2aa9bfc7768356edbe79e22d2eae81b8a32a0
@@ -1,3 +1,6 @@
1
+ # 0.47.2
2
+ * Fix to not flush local component span when a server span or a consumer span is in the stack.
3
+
1
4
  # 0.47.1
2
5
  * Fix to set `SERVER` span kind at the beginning to avoid being flushed before closing.
3
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZipkinTracer
4
- VERSION = '0.47.1'
4
+ VERSION = '0.47.2'
5
5
  end
@@ -38,11 +38,9 @@ module Trace
38
38
  end
39
39
 
40
40
  def skip_flush?(span)
41
- return true if span.kind == Trace::Span::Kind::CLIENT && span.has_parent_span?
41
+ return false if span.kind == Trace::Span::Kind::SERVER || span.kind == Trace::Span::Kind::CONSUMER
42
42
 
43
- if span.kind == Trace::Span::Kind::PRODUCER
44
- return true if spans.any? { |s| s.kind == Trace::Span::Kind::SERVER || s.kind == Trace::Span::Kind::CONSUMER }
45
- end
43
+ spans.any? { |s| s.kind == Trace::Span::Kind::SERVER || s.kind == Trace::Span::Kind::CONSUMER }
46
44
  end
47
45
 
48
46
  def flush!
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.47.1
4
+ version: 0.47.2
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-10-07 00:00:00.000000000 Z
17
+ date: 2020-10-12 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: faraday