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:
parent
c1113c1c2c
commit
a44ff1d79a
|
|
@ -52,7 +52,7 @@ class TestSQLite3(TestBase):
|
||||||
self.assertEqual(root_span.name, "rootSpan")
|
self.assertEqual(root_span.name, "rootSpan")
|
||||||
self.assertEqual(child_span.name, "sqlite3")
|
self.assertEqual(child_span.name, "sqlite3")
|
||||||
self.assertIsNotNone(child_span.parent)
|
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)
|
self.assertIs(child_span.kind, trace_api.SpanKind.CLIENT)
|
||||||
|
|
||||||
def test_execute(self):
|
def test_execute(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue