Skip to content

Commit

Permalink
[Issue #1111] Add status code to unit test for Zipkin exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
wilguo committed Sep 16, 2020
1 parent 53199dc commit 2c05bc0
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def test_export(self):
"key_bool": "False",
"key_string": "hello_world",
"key_float": "111.22",
"ot.status_code":0
},
"annotations": [
{
Expand All @@ -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,
},
{
Expand All @@ -245,6 +249,7 @@ def test_export(self):
"tags": {
"key_string": "hello_world",
"key_resource": "some_resource",
"ot.status_code":0
},
"annotations": None,
},
Expand All @@ -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,
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2c05bc0

Please sign in to comment.