zipkin 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '08c97e0494e2aada96486d717d1cd8b645da89c2'
4
- data.tar.gz: dc7681e5f0a7c4efe293f22ad496f9c352675137
3
+ metadata.gz: 9adbc2cee23454ef82c7b5b14b3d5e0b98d5dfca
4
+ data.tar.gz: 16ef2c75861ba60287682292021e274056bd48d3
5
5
  SHA512:
6
- metadata.gz: 3f80229eec38c0f34c83276264b90073195b80e74f5389569ff5458957e9f90e85a02856684a169a116239cb5c804a9eef69161b32851ac38222545090a26306
7
- data.tar.gz: b2ee56339a6e2eb7aa615becf7fd163fd86d66e165fb065a3f50e9cc89fd217a3be3628f7484491f90c866b8460b4f4eea0c487575de29693da928895307d059
6
+ metadata.gz: '0956efffbff2a1da1b9ed1576da21e025b45a0819642768e6fdcde239f4099ce346e86aa00f7e276a4e73e60b96d730d666de4ea1761a25bbccca8534844cd7b'
7
+ data.tar.gz: c15d62ab53d912a541349068b4fb3062df67044b55b957faf220d8a25538dae5845a8882cf6e610418b1db29241218174f4e4cf045d2ad145326de4044e2201b
data/lib/zipkin/span.rb CHANGED
@@ -25,9 +25,11 @@ module Zipkin
25
25
  @operation_name = operation_name
26
26
  @collector = collector
27
27
  @start_time = start_time
28
- @tags = tags
28
+ @tags = {}
29
29
  @logs = []
30
30
  @references = references
31
+
32
+ tags.each(&method(:set_tag))
31
33
  end
32
34
 
33
35
  # Set a tag value on this span
data/lib/zipkin/tracer.rb CHANGED
@@ -75,7 +75,7 @@ module Zipkin
75
75
  def start_span(operation_name,
76
76
  child_of: nil,
77
77
  start_time: Time.now,
78
- tags: {},
78
+ tags: nil,
79
79
  references: nil,
80
80
  ignore_active_scope: false,
81
81
  **)
@@ -90,7 +90,7 @@ module Zipkin
90
90
  @collector,
91
91
  start_time: start_time,
92
92
  references: references,
93
- tags: tags
93
+ tags: tags || {}
94
94
  )
95
95
  end
96
96
 
data/zipkin.gemspec CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'zipkin'
6
- spec.version = '1.5.0'
6
+ spec.version = '1.5.1'
7
7
  spec.authors = ['SaleMove TechMovers']
8
8
  spec.email = ['techmovers@salemove.com']
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - SaleMove TechMovers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-01 00:00:00.000000000 Z
11
+ date: 2018-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler