mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 13:43:03 +08:00
Parent is now always passed in via Context, intead of Span or SpanContext (#1146)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
This commit is contained in:
@ -52,7 +52,7 @@ class TestSQLite3(TestBase):
|
||||
self.assertEqual(root_span.name, "rootSpan")
|
||||
self.assertEqual(child_span.name, "sqlite3")
|
||||
self.assertIsNotNone(child_span.parent)
|
||||
self.assertIs(child_span.parent, root_span.get_context())
|
||||
self.assertIs(child_span.parent, root_span.get_span_context())
|
||||
self.assertIs(child_span.kind, trace_api.SpanKind.CLIENT)
|
||||
|
||||
def test_execute(self):
|
||||
|
Reference in New Issue
Block a user