config->getLocalAgentReportingHost(), $this->config->getLocalAgentReportingPort(), $this->config->getLogger(), $this->config ); $transport = new TBufferedTransport( $udp, $this->config->getMaxBufferLength(), $this->config->getMaxBufferLength() ); try { $transport->open(); } catch (TTransportException $e) { $this->config->getLogger()->warning($e->getMessage()); } $protocol = new TBinaryProtocol($transport); $client = new AgentClient($protocol); $this->config->getLogger()->debug('Initializing UDP Jaeger Tracer with Jaeger.Thrift over Binary protocol'); $sender = new JaegerSender($client, $this->config->getLogger()); $sender->setMaxBufferLength($this->config->getMaxBufferLength()); return new JaegerReporter($sender); } }