@@ -138,7 +138,6 @@ def test_translate_to_zipkin_span_kind_none(self):
138138 attributes = {
139139 'test_key' : False ,
140140 'test_key2' : 'raw_value' ,
141- # these tags are malformed and should be omitted
142141 'test_key3' : 0.1 ,
143142 },
144143 start_time = '2017-08-15T18:02:26.071158Z' ,
@@ -207,7 +206,8 @@ def test_translate_to_zipkin_span_kind_none(self):
207206 'localEndpoint' : local_endpoint_ipv6 ,
208207 'tags' : {
209208 'test_key' : 'False' ,
210- 'test_key2' : 'raw_value'
209+ 'test_key2' : 'raw_value' ,
210+ 'test_key3' : '0.1'
211211 },
212212 'kind' : 'SERVER' ,
213213 'annotations' : [],
@@ -299,7 +299,6 @@ def test_translate_to_zipkin_with_annotations(self):
299299 attributes = {
300300 'test_key' : False ,
301301 'test_key2' : 'raw_value' ,
302- # these tags are malformed and should be omitted
303302 'test_key3' : 0.1 ,
304303 },
305304 start_time = '2017-08-15T18:02:26.071158Z' ,
@@ -394,7 +393,8 @@ def test_translate_to_zipkin_with_annotations(self):
394393 local_endpoint_ipv6 ,
395394 'tags' : {
396395 'test_key' : 'False' ,
397- 'test_key2' : 'raw_value'
396+ 'test_key2' : 'raw_value' ,
397+ 'test_key3' : '0.1'
398398 },
399399 'kind' :
400400 'SERVER' ,
@@ -422,7 +422,7 @@ def test_translate_to_zipkin_with_annotations(self):
422422 self .assertEqual (zipkin_spans_ipv6 , expected_zipkin_spans_ipv6 )
423423
424424 def test_ignore_incorrect_spans (self ):
425- attributes = {'float_value ' : 0.1 }
425+ attributes = {'unknown_value ' : {} }
426426 self .assertEqual (
427427 zipkin_exporter ._extract_tags_from_span (attributes ), {})
428428
0 commit comments