def test_agent_client(self):
        agent_client = jaeger_exporter.AgentClientUDP(host_name="localhost",
                                                      port=6354)

        batch = jaeger.Batch(
            # pylint: disable=protected-access
            spans=jaeger_exporter._translate_to_jaeger((self._test_span, )),
            process=jaeger.Process(serviceName="xxx"),
        )

        agent_client.emit(batch)
Beispiel #2
0
    def test_agent_client(self):
        agent_client = jaeger_exporter.AgentClientUDP(
            host_name="localhost", port=6354
        )

        translate = Translate([self._test_span])
        # pylint: disable=protected-access
        spans = translate._translate(ThriftTranslator())

        batch = jaeger.Batch(
            spans=spans, process=jaeger.Process(serviceName="xxx"),
        )

        agent_client.emit(batch)