Revert "exporter/jaeger: Either collector submit batch or Agent emit batch (#982)"

This reverts commit ed0198d7b6.
This commit is contained in:
alrex 2020-10-22 21:07:31 -07:00
parent a5116e89c0
commit b005fcd56a
2 changed files with 2 additions and 3 deletions

View File

@ -168,8 +168,7 @@ class JaegerSpanExporter(SpanExporter):
if self.collector is not None:
self.collector.submit(batch)
else:
self.agent_client.emit(batch)
self.agent_client.emit(batch)
return SpanExportResult.SUCCESS

View File

@ -367,7 +367,7 @@ class TestJaegerSpanExporter(unittest.TestCase):
exporter._collector = collector_mock
exporter.export((self._test_span,))
self.assertEqual(agent_client_mock.emit.call_count, 1)
self.assertEqual(agent_client_mock.emit.call_count, 2)
self.assertEqual(collector_mock.submit.call_count, 1)
def test_agent_client(self):