Skip to content

Commit b7c688c

Browse files
committed
Fix tests.
1 parent 7907133 commit b7c688c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opentelemetry-sdk/tests/trace/test_trace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ def test_ended_span(self):
578578

579579
def test_error_status(self):
580580
try:
581-
with trace.Tracer("test_error_status").start_span("root") as root:
581+
with trace.TracerSource().get_tracer(
582+
"opentelemetry-sdk"
583+
).start_span("root") as root:
582584
raise Exception("unknown")
583585
except Exception: # pylint: disable=broad-except
584586
pass

0 commit comments

Comments
 (0)