Skip to content

Commit fe8ff3f

Browse files
committed
Update tests after merge
1 parent c59966c commit fe8ff3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opentelemetry-sdk/tests/logs/test_handler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ def __str__(self):
251251
self.assertTrue(isinstance(log_record.body, str))
252252
self.assertEqual(log_record.body, "CustomException stringified")
253253
self.assertEqual(
254-
log_record.attributes[SpanAttributes.EXCEPTION_TYPE],
254+
log_record.attributes[exception_attributes.EXCEPTION_TYPE],
255255
CustomException.__name__,
256256
)
257257
self.assertEqual(
258-
log_record.attributes[SpanAttributes.EXCEPTION_MESSAGE],
258+
log_record.attributes[exception_attributes.EXCEPTION_MESSAGE],
259259
"CustomException message",
260260
)
261261
stack_trace = log_record.attributes[
262-
SpanAttributes.EXCEPTION_STACKTRACE
262+
exception_attributes.EXCEPTION_STACKTRACE
263263
]
264264
self.assertIsInstance(stack_trace, str)
265265
self.assertTrue("Traceback" in stack_trace)

0 commit comments

Comments
 (0)