Skip to content

Commit 2c05bc0

Browse files
committed
[Issue open-telemetry#1111] Add status code to unit test for Zipkin exporter
1 parent 53199dc commit 2c05bc0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

exporter/opentelemetry-exporter-zipkin/tests/test_zipkin_exporter.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def test_export(self):
213213
"key_bool": "False",
214214
"key_string": "hello_world",
215215
"key_float": "111.22",
216+
"ot.status_code":0
216217
},
217218
"annotations": [
218219
{
@@ -231,7 +232,10 @@ def test_export(self):
231232
"duration": durations[1] // 10 ** 3,
232233
"localEndpoint": local_endpoint,
233234
"kind": None,
234-
"tags": {"key_resource": "some_resource"},
235+
"tags": {
236+
"key_resource": "some_resource",
237+
"ot.status_code":0
238+
},
235239
"annotations": None,
236240
},
237241
{
@@ -245,6 +249,7 @@ def test_export(self):
245249
"tags": {
246250
"key_string": "hello_world",
247251
"key_resource": "some_resource",
252+
"ot.status_code":0
248253
},
249254
"annotations": None,
250255
},
@@ -259,6 +264,7 @@ def test_export(self):
259264
"tags": {
260265
"otel.instrumentation_library.name": "name",
261266
"otel.instrumentation_library.version": "version",
267+
"ot.status_code":0
262268
},
263269
"annotations": None,
264270
},
@@ -324,7 +330,9 @@ def test_zero_padding(self):
324330
"duration": duration // 10 ** 3,
325331
"localEndpoint": local_endpoint,
326332
"kind": None,
327-
"tags": {},
333+
"tags": {
334+
"ot.status_code":0
335+
},
328336
"annotations": None,
329337
"debug": True,
330338
"parentId": "0aaaaaaaaaaaaaaa",

0 commit comments

Comments
 (0)