From cdd7ad020e165fe680703b6d3319b908b682fb7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 17:12:29 +0300 Subject: jaeger-client -> opentelemetry --- .../ReporterFactory/AbstractReporterFactory.php | 23 ----------- .../ReporterFactory/JaegerHttpReporterFactory.php | 35 ---------------- .../ReporterFactory/JaegerReporterFactory.php | 44 --------------------- .../ReporterFactory/ReporterFactoryInterface.php | 10 ----- .../ReporterFactory/ZipkinReporterFactory.php | 46 ---------------------- 5 files changed, 158 deletions(-) delete mode 100644 vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/AbstractReporterFactory.php delete mode 100644 vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php delete mode 100644 vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerReporterFactory.php delete mode 100644 vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/ReporterFactoryInterface.php delete mode 100644 vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/ZipkinReporterFactory.php (limited to 'vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory') diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/AbstractReporterFactory.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/AbstractReporterFactory.php deleted file mode 100644 index e34adc5dc..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/AbstractReporterFactory.php +++ /dev/null @@ -1,23 +0,0 @@ -config = $config; - } -} diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php deleted file mode 100644 index 038e81161..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php +++ /dev/null @@ -1,35 +0,0 @@ -config->getLocalAgentReportingHost(), - $this->config->getLocalAgentReportingPort(), - "/api/traces" - ); - - try { - $transport->open(); - } catch (TTransportException $e) { - $this->config->getLogger()->warning($e->getMessage()); - } - $protocol = new TBinaryProtocol($transport); - $client = new HttpAgentClient($protocol); - $this->config->getLogger()->debug('Initializing HTTP Jaeger Tracer with Jaeger.Thrift over Binary protocol'); - $sender = new JaegerSender($client, $this->config->getLogger()); - $sender->setMaxBufferLength($this->config->getMaxBufferLength()); - return new JaegerReporter($sender); - } -} diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerReporterFactory.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerReporterFactory.php deleted file mode 100644 index 9865884b5..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerReporterFactory.php +++ /dev/null @@ -1,44 +0,0 @@ -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); - } -} diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/ReporterFactoryInterface.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/ReporterFactoryInterface.php deleted file mode 100644 index 4bfd3204f..000000000 --- a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/ReporterFactoryInterface.php +++ /dev/null @@ -1,10 +0,0 @@ -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 TCompactProtocol($transport); - $client = new AgentClient($protocol); - $this->config->getLogger()->debug('Initializing UDP Jaeger Tracer with Zipkin.Thrift over Compact protocol'); - $sender = new UdpSender($client, $this->config->getMaxBufferLength(), $this->config->getLogger()); - return new RemoteReporter($sender); - } -} -- cgit v1.2.3