From 2c05bc0a4db48411b65907839994297c01afa793 Mon Sep 17 00:00:00 2001 From: Wilbert Guo Date: Wed, 16 Sep 2020 11:57:41 -0700 Subject: [PATCH] [Issue #1111] Add status code to unit test for Zipkin exporter --- .../tests/test_zipkin_exporter.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/exporter/opentelemetry-exporter-zipkin/tests/test_zipkin_exporter.py b/exporter/opentelemetry-exporter-zipkin/tests/test_zipkin_exporter.py index 309d9668057..f2de4c7aed6 100644 --- a/exporter/opentelemetry-exporter-zipkin/tests/test_zipkin_exporter.py +++ b/exporter/opentelemetry-exporter-zipkin/tests/test_zipkin_exporter.py @@ -213,6 +213,7 @@ def test_export(self): "key_bool": "False", "key_string": "hello_world", "key_float": "111.22", + "ot.status_code":0 }, "annotations": [ { @@ -231,7 +232,10 @@ def test_export(self): "duration": durations[1] // 10 ** 3, "localEndpoint": local_endpoint, "kind": None, - "tags": {"key_resource": "some_resource"}, + "tags": { + "key_resource": "some_resource", + "ot.status_code":0 + }, "annotations": None, }, { @@ -245,6 +249,7 @@ def test_export(self): "tags": { "key_string": "hello_world", "key_resource": "some_resource", + "ot.status_code":0 }, "annotations": None, }, @@ -259,6 +264,7 @@ def test_export(self): "tags": { "otel.instrumentation_library.name": "name", "otel.instrumentation_library.version": "version", + "ot.status_code":0 }, "annotations": None, }, @@ -324,7 +330,9 @@ def test_zero_padding(self): "duration": duration // 10 ** 3, "localEndpoint": local_endpoint, "kind": None, - "tags": {}, + "tags": { + "ot.status_code":0 + }, "annotations": None, "debug": True, "parentId": "0aaaaaaaaaaaaaaa",