Revert "exporter/jaeger: Either collector submit batch or Agent emit batch (#982)"
This reverts commit ed0198d7b6.
This commit is contained in:
parent
a5116e89c0
commit
b005fcd56a
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue