Skip to content

Commit 8eda7b6

Browse files
committed
add status.description assertions
1 parent 26f5d32 commit 8eda7b6

File tree

1 file changed

+8
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-falcon/tests

1 file changed

+8
-0
lines changed

instrumentation/opentelemetry-instrumentation-falcon/tests/test_falcon.py

+8
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def _test_method(self, method):
8888
span.name, "HelloWorldResource.on_{0}".format(method.lower())
8989
)
9090
self.assertEqual(span.status.status_code, StatusCode.UNSET)
91+
self.assertEqual(
92+
span.status.description,
93+
None,
94+
)
9195
self.assertSpanHasAttributes(
9296
span,
9397
{
@@ -113,6 +117,10 @@ def test_404(self):
113117
span = spans[0]
114118
self.assertEqual(span.name, "HTTP GET")
115119
self.assertEqual(span.status.status_code, StatusCode.ERROR)
120+
self.assertEqual(
121+
span.status.description,
122+
"NotFound",
123+
)
116124
self.assertSpanHasAttributes(
117125
span,
118126
{

0 commit comments

Comments
 (0)