diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php')
-rw-r--r-- | vendor/jonahgeorge/jaeger-client-php/src/Jaeger/ReporterFactory/JaegerHttpReporterFactory.php | 35 |
1 files changed, 0 insertions, 35 deletions
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 @@ -<?php - -namespace Jaeger\ReporterFactory; - -use Jaeger\AgentClient\HttpAgentClient; -use Jaeger\Reporter\JaegerReporter; -use Jaeger\Reporter\ReporterInterface; -use Jaeger\Sender\JaegerSender; -use Thrift\Exception\TTransportException; -use Thrift\Protocol\TBinaryProtocol; -use Thrift\Transport\THttpClient; - -class JaegerHttpReporterFactory extends AbstractReporterFactory implements ReporterFactoryInterface -{ - public function createReporter() : ReporterInterface - { - $transport = new THttpClient( - $this->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); - } -} |