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:
parent
07318bd378
commit
82b07959a9
|
|
@ -125,8 +125,9 @@ class TestCeleryInstrumentation(TestBase):
|
||||||
|
|
||||||
self.assertIn(SpanAttributes.EXCEPTION_STACKTRACE, event.attributes)
|
self.assertIn(SpanAttributes.EXCEPTION_STACKTRACE, event.attributes)
|
||||||
|
|
||||||
self.assertEqual(
|
# TODO: use plain assertEqual after 1.25 is released (https://github.com/open-telemetry/opentelemetry-python/pull/3837)
|
||||||
event.attributes[SpanAttributes.EXCEPTION_TYPE], "CustomError"
|
self.assertIn(
|
||||||
|
"CustomError", event.attributes[SpanAttributes.EXCEPTION_TYPE]
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue