diff options
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/src/Jaeger/AgentClient')
-rw-r--r-- | vendor/jonahgeorge/jaeger-client-php/src/Jaeger/AgentClient/HttpAgentClient.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/AgentClient/HttpAgentClient.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/AgentClient/HttpAgentClient.php new file mode 100644 index 000000000..e270b76ac --- /dev/null +++ b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/AgentClient/HttpAgentClient.php @@ -0,0 +1,27 @@ +<?php + +namespace Jaeger\AgentClient; + +class HttpAgentClient implements \Jaeger\Thrift\Agent\AgentIf +{ + protected $input_ = null; + protected $output_ = null; + + protected $seqid_ = 0; + + public function __construct($input, $output = null) + { + $this->input_ = $input; + $this->output_ = $output ? $output : $input; + } + + public function emitZipkinBatch(array $spans) + { + } + + public function emitBatch(\Jaeger\Thrift\Batch $batch) + { + $batch->write($this->output_); + $this->output_->getTransport()->flush(); + } +} |