Replaced Tracer.use_span() with opentelemetry.trace.use_span() (#364)

This commit is contained in:
Owais Lone
2021-03-08 23:03:49 +05:30
committed by GitHub
parent 0157535e93
commit f436514554
32 changed files with 56 additions and 91 deletions

View File

@ -84,8 +84,6 @@ class PymemcacheClientTestCase(
mock_span = mock.Mock()
mock_span.is_recording.return_value = False
mock_tracer.start_span.return_value = mock_span
mock_tracer.use_span.return_value.__enter__ = mock_span
mock_tracer.use_span.return_value.__exit__ = True
with mock.patch("opentelemetry.trace.get_tracer") as tracer:
tracer.return_value = mock_tracer
client = self.make_client([b"STORED\r\n"])