mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 05:32:30 +08:00
fix: instrumentation-celery test tasks CustomError (#2416)
* fix: instrumentation-celery test tasks CustomError * chore: lint --------- Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
This commit is contained in:
@ -125,8 +125,9 @@ class TestCeleryInstrumentation(TestBase):
|
||||
|
||||
self.assertIn(SpanAttributes.EXCEPTION_STACKTRACE, event.attributes)
|
||||
|
||||
self.assertEqual(
|
||||
event.attributes[SpanAttributes.EXCEPTION_TYPE], "CustomError"
|
||||
# TODO: use plain assertEqual after 1.25 is released (https://github.com/open-telemetry/opentelemetry-python/pull/3837)
|
||||
self.assertIn(
|
||||
"CustomError", event.attributes[SpanAttributes.EXCEPTION_TYPE]
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
|
Reference in New Issue
Block a user